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.
The detail of configuration is below. Next pages show you how to write "alinous-config.xml".
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.
- System and Database
If you use Mail.send() function, SMTP setting is necessary. This configuration specify the SMTP server and method to authenticate the user.
You can implement filer in Java language. If you want to hook the access before the Alinous-Core script executed, this hook is suitable.
- Filter Hook
Some browsers of mobile phone does not supports session cookie. Therefore you have to add parameter which indicate session id.
If you use basic authentication or form authentication, this setting is necessary.
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
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.
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.