Rimfaxe Web Server Documentation

>> Documentation >> Configuration >> RWS engine


Rimfaxe Web Server Configuration.

This document describes how to configure Rimfaxe Web Server.
Note that RWS is short for Rimfaxe Web Server.

This document provides info on setting up the RWS engine, including cache size and environment.

The configuration of the engine is defined in config/rimfaxe-webserver.xml.


Cache size.
The cache is for caching static content. The definition of what is considered static content is made in the deployment of the web-application. To change the size of the static content cache, alter the value of <cache-size> to the desired value in kilobytes. The default value is 32000.



Environment settings.
RWS must know where it is installed to work properly. This is because it uses special native libraries for the I/O engine, and because it needs to include some dirs when compiling JSP's and servlets.

The installation directory is set in <home>.

To compile JSP's and servlets RWS uses the GCJ compiler. The GCJ compiler used must be version 3.3 (or newer), and the location of the GCJ command is defined in <gcj>. The default value is /usr/local/bin/gcj.

Different kinds of Operating Systems use different schemes for dynamic libraries. Since RWS compiles JSP's and servlets into dynamic libraries, RWS needs to know which OS it runs on. This is set in <os>. At present the only valid value is linux.



Virtual Hosts.
RWS supports virtual hosts, which mean that several virtual hosts can share the same port. As an example www.foo.domain can be run alongside www.bar.domain on port 80, and RWS will recognize requests based on the host name. This way it is possible to host many domains on the same server.

To set this up a virtual host for each domain must be defined. For each virtual host one or more connectors are needed. A connector defines which port to listen on.