Server document-rootDetails » History » Revision 13
Revision 12 (nitrox, 2012-08-11 10:42) → Revision 13/14 (gstrauss, 2022-05-28 14:25)
h2. server.document-root server.document-root document-root of the webserver @server.document-root@ - filesystem path from which to serve requests Default: none; setting @server.document-root@ p((. This variable must be specified. If in lighttpd.conf is required. @server.document-root@ set in global scope (i.e. not inside lighttpd.conf conditionals) conditionals), it will be used for all requests without a @Host:@ '''Host:''' header and all other requests unless you conditionally overwrite its value by something like <pre> server.document-root = "/var/www/default" $HTTP["host"] == "host2.example.org" { server.document-root = "/var/www/host2.example.org" } </pre> 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