Project

General

Profile

Actions

Server document-rootDetails » History » Revision 6

« Previous | Revision 6/14 (diff) | Next »
Anonymous, 2007-06-30 06:37
Added closing }


server.document-root

server.document-root {{{
server.document-root = "/var/www/default"
$HTTP["host"] == "host2.example.org" {
server.document-root = "/var/www/host2.example.org"
}
}}}
In this case, requests with Host: host2.example.org go to /var/www/host2.example.org, all others to /var/www/default

Only absolute paths (e.g. "/var/www/web/" are supported, relative paths (like ~/web or ./web) will most certainly lead to errors.
Default: no default, required

Updated by Anonymous over 17 years ago · 6 revisions