Alinous-Core configuration

structure of alinous-core configuration

 This section is about configuration of the server software. The "alinous-config.xml" is the configuration file.

By setting the file we can do a lot of things about web application.

Detail of configuration

The detail of configuration is below. Next pages show you how to write "alinous-config.xml".

System and Database (Essential)

 This configuration is essential. The Language Server uses 2 database instances, but both can be the same one.

The first database instance is system database which is to store the session, page status and to support lock in the distributed network environment.

Another one is default database your application use.

Mail setting (Optional)

 If you use Mail.send() function, SMTP setting is necessary. This configuration specify the SMTP server and method to authenticate the user.

Filters (Optional)

 You can implement filer in Java language. If you want to hook the access before the Alinous-Core script executed, this hook is suitable.

Psedo Session (Optional)

 Some browsers of mobile phone does not supports session cookie. Therefore you have to add parameter which indicate session id.

Authentication (Optional)

 If you use basic authentication or form authentication, this setting is necessary.

Please take a look at Basic authentication and Form authentication before reading the configuration's detail.

Virtual hosting (Optional)

 If you use virtual host when you deploy your application into the server. Alinous-Core supports domain based virtual host and port based one.

You can specify the "ALINOUS_HOME" for the virtual host

Split "alinous-config.xml"

 The "alinous-config.xml" is a xml file, and you can split the file into some xml files by using importing external xml format.

By the "!ENTITY" tag, you can import external file, and specify the location by "&[entity name]". If you don't want to locate information of the configuration, this method is useful.

Debug configration

 This configuration file can have debug configuration. The setting in the "debug" tag is used when the server launched in debug mode.

When you launch the embedded server from the IDE, the server is in debug mode. And when you deploy your application into the internet server and using Language Server, it runs in release mode.

Go to Top