diff options
Diffstat (limited to 'doc/configuration.txt')
-rw-r--r-- | doc/configuration.txt | 37 |
1 files changed, 25 insertions, 12 deletions
diff --git a/doc/configuration.txt b/doc/configuration.txt index 106b008..29db662 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -7,8 +7,8 @@ Module: core ------------ :Author: Jan Kneschke -:Date: $Date: 2005-11-11 13:43:16 +0100 (Fri, 11 Nov 2005) $ -:Revision: $Revision: 835 $ +:Date: $Date: 2006-01-14 18:07:25 +0100 (Sat, 14 Jan 2006) $ +:Revision: $Revision: 947 $ :abstract: the layout of the configuration file @@ -96,9 +96,10 @@ $HTTP["url"] $HTTP["remoteip"] match on the remote IP or a remote Network $SERVER["socket"] - match on socket. Value must be on the format "$ip:$port" where $ip is an IP - address and $port a port number. Only equal match (==) is supported. - It also binds to this socket. + match on socket. Value must be on the format "ip:port" where ip is an IP + address and port a port number. Only equal match (==) is supported. + It also binds the daemon to this socket. Use this if you want to do IP/port- + based virtual hosts. <operator> is one of: @@ -126,8 +127,8 @@ Example } # handish virtual hosting - # map all subdomains to a single document-root - $HTTP["host"] =~ "\.example\.org$" { + # map all domains of a top-level-domain to a single document-root + $HTTP["host"] =~ "(^|\.)example\.org$" { server.document-root = "/var/www/htdocs/example.org/pages/" } @@ -180,9 +181,16 @@ server.document-root Default: no default, required server.bind - hostname of the server + IP address, hostname or absolute path to the unix-domain socket the server + listen on. Default: bind to all interfaces + + Example: :: + + server.bind = "127.0.0.1" + server.bind = "www.example.org" + server.bind = "/tmp/lighttpd.socket" server.port tcp-port to bind the server to @@ -221,6 +229,8 @@ dir-listing.activate enables virtual directory listings if a directory is requested no index-file was found + Default: disabled + dir-listing.hide-dotfiles if enabled, does not list hidden files in directory listings generated by the dir-listing option. @@ -291,17 +301,20 @@ server.event-handler server.pid-file set the name of the .pid-file where the PID of the server should be placed. - This option is used in combination with a start-script and the deamon mode + This option is used in combination with a start-script and the daemon mode Default: not set server.max-request-size - maximum size in kbytes of the request (header + body) + maximum size in kbytes of the request (header + body). Only applies to POST + requests. - Default: 2Gb + Default: 2097152 (2GB) server.max-worker - number of worker processes to spawn (works but has no benefit) + number of worker processes to spawn. This is usually only needed on servers + which are fairly loaded and the network handler calls delay often (e.g. new + requests are not handled instantaneously). Default: 0 |