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
26 ## a static document-root, for virtual-hosting take look at the
27 ## server.virtual-* options
28 server.document-root = "/home/services/lighttpd/html/"
30 ## where to send error-messages to
31 server.errorlog = "/var/log/lighttpd/lighttpd.log"
33 # files to check for if .../ is requested
34 server.indexfiles = ( "index.php", "index.html",
35 "index.htm", "default.htm" )
38 mimetype.assign = ( ".png" => "image/png",
39 ".jpg" => "image/jpeg",
40 ".jpeg" => "image/jpeg",
41 ".gif" => "image/gif",
42 ".html" => "text/html",
43 ".htm" => "text/html",
44 ".pdf" => "application/pdf",
45 ".swf" => "application/x-shockwave-flash",
46 ".spl" => "application/futuresplash",
47 ".txt" => "text/plain",
48 ".tar.gz" => "application/x-tgz",
49 ".tgz" => "application/x-tgz",
50 ".gz" => "application/x-gzip",
52 ".conf" => "text/plain" )
54 # use "Content-Type" extended attribute for mime type if possible
55 # mimetype.use-xattr = "enable"
58 accesslog.filename = "/var/log/lighttpd/access.log"
60 ## deny access the file-extensions
62 # ~ is for backupfiles from vi, emacs, joe, ...
63 # .inc is often used for code includes which should in general not be part
64 # of the document-root
65 url.access-deny = ( "~", ".inc" )
69 ######### Options that are good to be but not neccesary to be changed #######
71 ## bind to port (default: 80)
74 ## bind to localhost (default: all interfaces)
75 #server.bind = "grisu.home.kneschke.de"
80 ## If you want name-based virtual hosting add the next three settings and load
84 ## virtual-server-root + virtual-server-default-host + virtual-server-docroot or
85 ## virtual-server-root + http-host + virtual-server-docroot
87 #simple-vhost.server-root = "/home/weigon/wwwroot/servers/"
88 #simple-vhost.default-host = "grisu.home.kneschke.de"
89 #simple-vhost.document-root = "/pages/"
93 ## Format: <errorfile-prefix><status>.html
94 ## -> ..../status-404.html for 'File not found'
95 #server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-"
97 ## virtual directory listings
98 #server.dir-listing = "enable"
100 ## send unhandled HTTP-header headers to error-log
101 #debug.dump-unknown-headers = "enable"
103 ### only root can use these options
105 # chroot() to directory (default: no chroot() )
108 ## change uid to <uid> (default: don't care)
109 server.username = "lighttpd"
111 ## change uid to <uid> (default: don't care)
112 server.groupname = "lighttpd"
115 #compress.cache-dir = "/tmp/lighttpd/cache/compress/"
116 #compress.filetype = ("text/plain", "text/html")
119 #fastcgi.server = ( ".php" =>
122 # "host" => "192.168.2.10",
129 #cgi.assign = ( ".pl" => "/usr/bin/perl",
130 # ".cgi" => "/usr/bin/perl" )
134 #ssl.engine = "enable"
135 #ssl.pemfile = "server.pem"
138 #status.rrd-reports = "enable"
139 #status.rrd-dir = "/home/weigon/wwwroot/logs/"
142 #auth.backend = "plain"
143 #auth.backend.plain.userfile = "lighttpd.user"
144 #auth.backend.plain.groupfile = "lighttpd.group"
146 #auth.backend.ldap.hostname = "localhost"
147 #auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
148 #auth.backend.ldap.filter = "(uid=$)"
150 #auth.require = ( "/server-status" =>
152 # "method" => "digest",
153 # "realm" => "download archiv",
154 # "require" => "group=www|user=jan|host=192.168.2.10"
158 # "method" => "digest",
159 # "realm" => "download archiv",
160 # "require" => "group=www|user=jan|host=192.168.2.10"
164 #### url handling modules (rewrite, redirect, access)
165 #url.rewrite = ( "^/$" => "/server-status" )
166 #url.redirect = ( "^/wishlist/(.+)" => "http://www.123.org/$1" )
169 #expire.url = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")