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
56 ".rpm" => "application/x-rpm",
57 ".pdf" => "application/pdf",
58 ".sig" => "application/pgp-signature",
59 ".spl" => "application/futuresplash",
60 ".class" => "application/octet-stream",
61 ".ps" => "application/postscript",
62 ".torrent" => "application/x-bittorrent",
63 ".dvi" => "application/x-dvi",
64 ".gz" => "application/x-gzip",
65 ".pac" => "application/x-ns-proxy-autoconfig",
66 ".swf" => "application/x-shockwave-flash",
67 ".tar.gz" => "application/x-tgz",
68 ".tgz" => "application/x-tgz",
69 ".tar" => "application/x-tar",
70 ".zip" => "application/zip",
71 ".mp3" => "audio/mpeg",
72 ".m3u" => "audio/x-mpegurl",
73 ".wma" => "audio/x-ms-wma",
74 ".wax" => "audio/x-ms-wax",
75 ".ogg" => "application/ogg",
76 ".wav" => "audio/x-wav",
77 ".gif" => "image/gif",
78 ".jpg" => "image/jpeg",
79 ".jpeg" => "image/jpeg",
80 ".png" => "image/png",
81 ".xbm" => "image/x-xbitmap",
82 ".xpm" => "image/x-xpixmap",
83 ".xwd" => "image/x-xwindowdump",
85 ".html" => "text/html",
86 ".htm" => "text/html",
87 ".js" => "text/javascript",
88 ".asc" => "text/plain",
90 ".conf" => "text/plain",
91 ".text" => "text/plain",
92 ".txt" => "text/plain",
95 ".mpeg" => "video/mpeg",
96 ".mpg" => "video/mpeg",
97 ".mov" => "video/quicktime",
98 ".qt" => "video/quicktime",
99 ".avi" => "video/x-msvideo",
100 ".asf" => "video/x-ms-asf",
101 ".asx" => "video/x-ms-asf",
102 ".wmv" => "video/x-ms-wmv",
103 ".bz2" => "application/x-bzip",
104 ".tbz" => "application/x-bzip-compressed-tar",
105 ".tar.bz2" => "application/x-bzip-compressed-tar"
108 # Use the "Content-Type" extended attribute to obtain mime type if possible
109 #mimetype.use-xattr = "enable"
111 ## send a different Server: header
112 ## be nice and keep it at lighttpd
113 #server.tag = "lighttpd"
115 #### accesslog module
116 accesslog.filename = "/var/log/lighttpd/access.log"
118 ## deny access the file-extensions
120 # ~ is for backupfiles from vi, emacs, joe, ...
121 # .inc is often used for code includes which should in general not be part
122 # of the document-root
123 url.access-deny = ( "~", ".inc" )
125 ######### Options that are good to be but not neccesary to be changed #######
127 ## bind to port (default: 80)
130 ## bind to localhost (default: all interfaces)
131 #server.bind = "grisu.home.kneschke.de"
133 ## error-handler for status 404
134 #server.error-handler-404 = "/error-handler.html"
135 #server.error-handler-404 = "/error-handler.php"
137 ## to help the rc.scripts
138 #server.pid-file = "/var/run/lighttpd.pid"
142 ## If you want name-based virtual hosting add the next three settings and load
146 ## virtual-server-root + virtual-server-default-host + virtual-server-docroot or
147 ## virtual-server-root + http-host + virtual-server-docroot
149 #simple-vhost.server-root = "/home/weigon/wwwroot/servers/"
150 #simple-vhost.default-host = "grisu.home.kneschke.de"
151 #simple-vhost.document-root = "/pages/"
155 ## Format: <errorfile-prefix><status-code>.html
156 ## -> ..../status-404.html for 'File not found'
157 #server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-"
159 ## virtual directory listings
160 #server.dir-listing = "enable"
163 #debug.log-request-header = "enable"
164 #debug.log-response-header = "enable"
165 #debug.log-request-handling = "enable"
166 #debug.log-file-not-found = "enable"
168 ### only root can use these options
170 # chroot() to directory (default: no chroot() )
173 ## change uid to <uid> (default: don't care)
174 server.username = "lighttpd"
176 ## change uid to <uid> (default: don't care)
177 server.groupname = "lighttpd"
180 #compress.cache-dir = "/tmp/lighttpd/cache/compress/"
181 #compress.filetype = ("text/plain", "text/html")
184 ## read proxy.txt for more info
188 # "host" => "192.168.0.101",
195 ## read fastcgi.txt for more info
200 # "socket" => "/var/run/php/php-fastcgi.sock",
201 # "bin-path" => "/usr/bin/php.fcgi",
209 # ".pl" => "/usr/bin/perl",
210 # ".cgi" => "/usr/bin/perl",
214 #ssl.engine = "enable"
215 #ssl.pemfile = "server.pem"
218 #status.status-url = "/server-status"
219 #status.config-url = "/server-config"
222 ## read authentification.txt for more info
224 # 0 for off, 1 for 'auth-ok' messages, 2 for verbose debugging
227 # plain, htpasswd, ldap or htdigest
228 #auth.backend = "plain"
229 # filename of the password storage
231 #auth.backend.plain.userfile = "/etc/lighttpd/lighttpd.user"
232 #auth.backend.plain.groupfile = "/etc/lighttpd/lighttpd.group"
234 #auth.backend.htpasswd.userfile = "/etc/lighttpd/lighttpd-htpasswd.user"
236 #auth.backend.htdigest.userfile = "/etc/lighttpd/lighttpd-htdigest.user"
238 # the $ in auth.backend.ldap.filter is replaced by the
239 # 'username' from the login dialog
240 #auth.backend.ldap.hostname = "localhost"
241 #auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
242 #auth.backend.ldap.filter = "(uid=$)"
245 # "/server-status" => (
246 # "method" => "digest",
247 # "realm" => "download archiv",
248 # "require" => "user=agent007|user=agent008"
250 # "/server-info" => (
251 # "method" => "digest",
252 # "realm" => "download archiv",
253 # "require" => "group=www|user=jan|host=192.168.2.10"
255 # "/server-config" => (
256 # "method" => "ldap",
257 # "realm" => "server config",
258 # "require" => "user=glen"
263 #### url handling modules (rewrite, redirect, access)
265 # "^/$" => "/server-status",
268 # "^/wishlist/(.+)" => "http://www.123.org/$1",
271 # define a pattern for the host url finding
273 # %0 => domain name + tld
275 # %2 => domain name without tld
276 # %3 => subdomain 1 name
277 # %4 => subdomain 2 name
279 #evhost.path-pattern = "/home/storage/dev/www/%3/htdocs/"
283 # "/buggy/" => "access 2 hours",
284 # "/asdhas/" => "access plus 1 seconds 2 minutes",
288 #ssi.extension = ( ".shtml" )
291 #rrdtool.binary = "/usr/bin/rrdtool"
292 #rrdtool.db-name = "/var/www/lighttpd.rrd"
295 #setenv.add-request-header = ( "TRAV_ENV" => "mysql://user@host/db" )
296 #setenv.add-response-header = ( "X-Secret-Message" => "42" )
299 #userdir.path = "public_html"
300 #userdir.exclude-user = ( "root", "postmaster" )
302 ## if set, only users from this list may use the feature
303 #userdir.include-user = ""
307 # "/cgi-bin/" => "/usr/lib/cgi-bin",