Project

General

Profile

Server document-rootDetails » History » Revision 5

Revision 4 (Anonymous, 2007-02-14 15:10) → Revision 5/14 (hoffie, 2007-06-17 18:17)

== server.document-root == 

 server.document-root 

     document-root of the webserver 

     This variable must be specified. If in global scope (i.e. not inside conditionals), specified, as it will be used for all requests without a '''Host:''' header and for all other requests unless with a known hostname which you conditionally overwrite its value by something like 
 {{{ 
 server.document-root = "/var/www/default" 
 $HTTP["host"] == "host2.example.org" { 
   server.document-root = "/var/www/host2.example.org" 
 }}} 
     In this case, requests might have specified with Host: host2.example.org go to /var/www/host2.example.org, all others to /var/www/default one of the above conditionals. 

     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