[NANOWEB DOCUMENTATION]

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:
[www.example.com]
ServerAlias       = www.example.org
DocumentRoot      = /var/www/nanoweb/vhosts/www.example.com
Log               = /var/log/nanoweb/access_www.example.com



NANOWEB, the aEGiS PHP web server

Index