1 # lighttpd configuration file
4 # all other module should only be loaded if really neccesary
20 ## a static document-root, for virtual-hosting take look at the
21 ## server.virtual-* options
22 server.document-root = "/www/"
24 ## where to send error-messages to
25 # server.errorlog = "/var/log/lighttpd/error.log"
27 # files to check for if .../ is requested
28 server.indexfiles = ( "index.html", "default.html",
29 "index.htm", "default.htm" )
33 ".pdf" => "application/pdf",
34 ".class" => "application/octet-stream",
35 ".pac" => "application/x-ns-proxy-autoconfig",
36 ".swf" => "application/x-shockwave-flash",
37 ".wav" => "audio/x-wav",
38 ".gif" => "image/gif",
39 ".jpg" => "image/jpeg",
40 ".jpeg" => "image/jpeg",
41 ".png" => "image/png",
43 ".html" => "text/html",
44 ".htm" => "text/html",
45 ".js" => "text/javascript",
46 ".txt" => "text/plain",
51 # Use the "Content-Type" extended attribute to obtain mime type if possible
52 # mimetypes.use-xattr = "enable"
55 ######### Options that are good to be but not neccesary to be changed #######
57 ## bind to port (default: 80)
60 ## bind to localhost (default: all interfaces)
61 #server.bind = "grisu.home.kneschke.de"
63 ## error-handler for status 404
64 #server.error-handler-404 = "/error-handler.html"
65 #server.error-handler-404 = "/error-handler.php"
70 ## If you want name-based virtual hosting add the next three settings and load
74 ## virtual-server-root + virtual-server-default-host + virtual-server-docroot or
75 ## virtual-server-root + http-host + virtual-server-docroot
77 #simple-vhost.server-root = "/home/weigon/wwwroot/servers/"
78 #simple-vhost.default-host = "grisu.home.kneschke.de"
79 #simple-vhost.document-root = "/pages/"
83 ## Format: <errorfile-prefix><status>.html
84 ## -> ..../status-404.html for 'File not found'
85 #server.errorfile-prefix = "/www/error-"
87 ## virtual directory listings
88 #server.dir-listing = "enable"
90 ## send unhandled HTTP-header headers to error-log
91 #debug.dump-unknown-headers = "enable"
93 ### only root can use these options
95 # chroot() to directory (default: no chroot() )
98 ## change uid to <uid> (default: don't care)
99 #server.username = "nobody"
101 ## change uid to <uid> (default: don't care)
102 #server.groupname = "nobody"
104 ## to help the rc.script
105 #server.pid-file = "/var/run/lighttpd.pid"
108 #compress.cache-dir = "/dev/null/"
109 #compress.filetype = ("text/plain", "text/html")
112 ## read fastcgi.txt for more info
113 #fastcgi.server = ( ".php" =>
116 # "host" => "192.168.2.10",
123 #cgi.assign = ( ".pl" => "/usr/bin/perl",
124 # ".cgi" => "/usr/bin/perl" )
128 #ssl.engine = "enable"
129 #ssl.pemfile = "server.pem"
132 # status.status-url = "/server-status"
133 # status.config-url = "/server-config"
136 ## read authentification.txt for more info
137 # auth.backend = "plain"
138 # auth.backend.plain.userfile = "lighttpd.user"
139 # auth.backend.plain.groupfile = "lighttpd.group"
141 # auth.require = ( "/server-status" =>
143 # "method" => "digest",
144 # "realm" => "download archiv",
145 # "require" => "group=www|user=jan|host=192.168.2.10"
149 # "method" => "digest",
150 # "realm" => "download archiv",
151 # "require" => "group=www|user=jan|host=192.168.2.10"
155 #### url handling modules (rewrite, redirect, access)
156 # url.rewrite = ( "^/$" => "/server-status" )
157 # url.redirect = ( "^/wishlist/(.+)" => "http://www.123.org/$1" )
160 # define a pattern for the host url finding
162 # %0 => domain name + tld
164 # %2 => domain name without tld
165 # %3 => subdomain 1 name
166 # %4 => subdomain 2 name
168 # evhost.path-pattern = "/home/storage/dev/www/%3/htdocs/"
171 # expire.url = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")
174 # ssi.extension = ( ".shtml" )