NANOWEB, the aEGiS PHP web server

Virtual Hosts Configuration

The configuration files of nanoweb usually reside in the /etc/nanoweb/ directory. Nereby the main configuration file »nanoweb.conf« you'll find the file »vhosts.conf« which should contain the directives to setup separate configurations for the »virtual hosts«, which are just other directories bound to other servernames than the main one.

In the vhosts.conf you start a new virtual host with its DNS-name in square brackets: [www.example.com] followed by all the common directives you can use in the main configuration file, like DocumentRoot, ServerAlias and FileBrowser, ...

an example:
ServerAlias       = www.example.org
DocumentRoot      = /var/www/nanoweb/vhosts/www.example.com
Log               = /var/log/nanoweb/access_www.example.com

You could add [/www.example.com] below this, as section names beginning with a slash [/whatever] tell Nanoweb to return to the [global] scope again.

There can be a port number behind the virtual hosts name in the square brackets [www.example.net:8080].

NANOWEB, the aEGiS PHP web server