1 # lighttpd configuration file
3 # use a it as base for lighttpd 1.0.0 and above
7 ############ Options you really have to take care of ####################
10 # at least mod_access and mod_accesslog should be loaded
11 # all other module should only be loaded if really neccesary
39 ## a static document-root, for virtual-hosting take look at the
40 ## server.virtual-* options
41 server.document-root = "/home/services/lighttpd/html/"
43 ## where to send error-messages to
44 server.errorlog = "/var/log/lighttpd/lighttpd.log"
46 # files to check for if .../ is requested
55 # include, relative to dirname of main config file
56 include "mime.types.conf"
58 # Use the "Content-Type" extended attribute to obtain mime type if possible
59 #mimetype.use-xattr = "enable"
61 ## send a different Server: header
62 ## be nice and keep it at lighttpd
63 #server.tag = "lighttpd"
66 accesslog.filename = "/var/log/lighttpd/access.log"
68 ## deny access the file-extensions
70 # ~ is for backupfiles from vi, emacs, joe, ...
71 # .inc is often used for code includes which should in general not be part
72 # of the document-root
73 url.access-deny = ( "~", ".inc" )
75 ######### Options that are good to be but not neccesary to be changed #######
77 ## bind to port (default: 80)
80 ## bind to localhost (default: all interfaces)
81 #server.bind = "grisu.home.kneschke.de"
83 ## error-handler for status 404
84 #server.error-handler-404 = "/error-handler.html"
85 #server.error-handler-404 = "/error-handler.php"
87 ## to help the rc.scripts
88 #server.pid-file = "/var/run/lighttpd.pid"
92 ## If you want name-based virtual hosting add the next three settings and load
96 ## virtual-server-root + virtual-server-default-host + virtual-server-docroot or
97 ## virtual-server-root + http-host + virtual-server-docroot
99 #simple-vhost.server-root = "/home/weigon/wwwroot/servers/"
100 #simple-vhost.default-host = "grisu.home.kneschke.de"
101 #simple-vhost.document-root = "/pages/"
105 ## Format: <errorfile-prefix><status-code>.html
106 ## -> ..../status-404.html for 'File not found'
107 #server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-"
109 ## virtual directory listings
110 #server.dir-listing = "enable"
113 #debug.log-request-header = "enable"
114 #debug.log-response-header = "enable"
115 #debug.log-request-handling = "enable"
116 #debug.log-file-not-found = "enable"
118 ### only root can use these options
120 # chroot() to directory (default: no chroot() )
123 ## change uid to <uid> (default: don't care)
124 server.username = "lighttpd"
126 ## change uid to <uid> (default: don't care)
127 server.groupname = "lighttpd"
130 #compress.cache-dir = "/tmp/lighttpd/cache/compress/"
131 #compress.filetype = ("text/plain", "text/html")
134 ## read proxy.txt for more info
138 # "host" => "192.168.0.101",
145 ## read fastcgi.txt for more info
150 # "socket" => "/var/run/php/php-fastcgi.sock",
151 # "bin-path" => "/usr/bin/php.fcgi",
159 # ".pl" => "/usr/bin/perl",
160 # ".cgi" => "/usr/bin/perl",
164 #ssl.engine = "enable"
165 #ssl.pemfile = "server.pem"
168 #status.status-url = "/server-status"
169 #status.config-url = "/server-config"
172 ## read authentification.txt for more info
174 # 0 for off, 1 for 'auth-ok' messages, 2 for verbose debugging
177 # plain, htpasswd, ldap or htdigest
178 #auth.backend = "plain"
179 # filename of the password storage
181 #auth.backend.plain.userfile = "/etc/lighttpd/lighttpd.user"
182 #auth.backend.plain.groupfile = "/etc/lighttpd/lighttpd.group"
184 #auth.backend.htpasswd.userfile = "/etc/lighttpd/lighttpd-htpasswd.user"
186 #auth.backend.htdigest.userfile = "/etc/lighttpd/lighttpd-htdigest.user"
188 # the $ in auth.backend.ldap.filter is replaced by the
189 # 'username' from the login dialog
190 #auth.backend.ldap.hostname = "localhost"
191 #auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
192 #auth.backend.ldap.filter = "(uid=$)"
195 # "/server-status" => (
196 # "method" => "digest",
197 # "realm" => "download archiv",
198 # "require" => "user=agent007|user=agent008"
200 # "/server-info" => (
201 # "method" => "digest",
202 # "realm" => "download archiv",
203 # "require" => "group=www|user=jan|host=192.168.2.10"
205 # "/server-config" => (
206 # "method" => "ldap",
207 # "realm" => "server config",
208 # "require" => "user=glen"
213 #### url handling modules (rewrite, redirect, access)
215 # "^/$" => "/server-status",
218 # "^/wishlist/(.+)" => "http://www.123.org/$1",
221 # define a pattern for the host url finding
223 # %0 => domain name + tld
225 # %2 => domain name without tld
226 # %3 => subdomain 1 name
227 # %4 => subdomain 2 name
229 #evhost.path-pattern = "/home/storage/dev/www/%3/htdocs/"
233 # "/buggy/" => "access 2 hours",
234 # "/asdhas/" => "access plus 1 seconds 2 minutes",
238 #ssi.extension = ( ".shtml" )
241 #rrdtool.binary = "/usr/bin/rrdtool"
242 #rrdtool.db-name = "/var/www/lighttpd.rrd"
245 #setenv.add-request-header = ( "TRAV_ENV" => "mysql://user@host/db" )
246 #setenv.add-response-header = ( "X-Secret-Message" => "42" )
249 #userdir.path = "public_html"
250 #userdir.exclude-user = ( "root", "postmaster" )
252 ## if set, only users from this list may use the feature
253 #userdir.include-user = ""
257 # "/cgi-bin/" => "/usr/lib/cgi-bin",