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
38 ## a static document-root, for virtual-hosting take look at the
39 ## server.virtual-* options
40 server.document-root = "/home/services/lighttpd/html/"
42 ## where to send error-messages to
43 server.errorlog = "/var/log/lighttpd/lighttpd.log"
45 # files to check for if .../ is requested
55 ".pdf" => "application/pdf",
56 ".sig" => "application/pgp-signature",
57 ".spl" => "application/futuresplash",
58 ".class" => "application/octet-stream",
59 ".ps" => "application/postscript",
60 ".torrent" => "application/x-bittorrent",
61 ".dvi" => "application/x-dvi",
62 ".gz" => "application/x-gzip",
63 ".pac" => "application/x-ns-proxy-autoconfig",
64 ".swf" => "application/x-shockwave-flash",
65 ".tar.gz" => "application/x-tgz",
66 ".tgz" => "application/x-tgz",
67 ".tar" => "application/x-tar",
68 ".zip" => "application/zip",
69 ".mp3" => "audio/mpeg",
70 ".m3u" => "audio/x-mpegurl",
71 ".wma" => "audio/x-ms-wma",
72 ".wax" => "audio/x-ms-wax",
73 ".ogg" => "audio/x-wav",
74 ".wav" => "audio/x-wav",
75 ".gif" => "image/gif",
76 ".jpg" => "image/jpeg",
77 ".jpeg" => "image/jpeg",
78 ".png" => "image/png",
79 ".xbm" => "image/x-xbitmap",
80 ".xpm" => "image/x-xpixmap",
81 ".xwd" => "image/x-xwindowdump",
83 ".html" => "text/html",
84 ".htm" => "text/html",
85 ".js" => "text/javascript",
86 ".asc" => "text/plain",
88 ".conf" => "text/plain",
89 ".text" => "text/plain",
90 ".txt" => "text/plain",
93 ".mpeg" => "video/mpeg",
94 ".mpg" => "video/mpeg",
95 ".mov" => "video/quicktime",
96 ".qt" => "video/quicktime",
97 ".avi" => "video/x-msvideo",
98 ".asf" => "video/x-ms-asf",
99 ".asx" => "video/x-ms-asf",
100 ".wmv" => "video/x-ms-wmv"
103 # Use the "Content-Type" extended attribute to obtain mime type if possible
104 #mimetype.use-xattr = "enable"
106 #### accesslog module
107 accesslog.filename = "/var/log/lighttpd/access.log"
109 ## deny access the file-extensions
111 # ~ is for backupfiles from vi, emacs, joe, ...
112 # .inc is often used for code includes which should in general not be part
113 # of the document-root
114 url.access-deny = ( "~", ".inc" )
116 ######### Options that are good to be but not neccesary to be changed #######
118 ## bind to port (default: 80)
121 ## bind to localhost (default: all interfaces)
122 #server.bind = "grisu.home.kneschke.de"
124 ## error-handler for status 404
125 #server.error-handler-404 = "/error-handler.html"
126 #server.error-handler-404 = "/error-handler.php"
128 ## to help the rc.scripts
129 #server.pid-file = "/var/run/lighttpd.pid"
133 ## If you want name-based virtual hosting add the next three settings and load
137 ## virtual-server-root + virtual-server-default-host + virtual-server-docroot or
138 ## virtual-server-root + http-host + virtual-server-docroot
140 #simple-vhost.server-root = "/home/weigon/wwwroot/servers/"
141 #simple-vhost.default-host = "grisu.home.kneschke.de"
142 #simple-vhost.document-root = "/pages/"
146 ## Format: <errorfile-prefix><status>.html
147 ## -> ..../status-404.html for 'File not found'
148 #server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-"
150 ## virtual directory listings
151 #server.dir-listing = "enable"
153 ## send unhandled HTTP-header headers to error-log
154 #debug.dump-unknown-headers = "enable"
156 ### only root can use these options
158 # chroot() to directory (default: no chroot() )
161 ## change uid to <uid> (default: don't care)
162 server.username = "lighttpd"
164 ## change uid to <uid> (default: don't care)
165 server.groupname = "lighttpd"
168 #compress.cache-dir = "/tmp/lighttpd/cache/compress/"
169 #compress.filetype = ("text/plain", "text/html")
172 ## read fastcgi.txt for more info
176 # "socket" => "/var/run/php/php-fastcgi.sock",
177 # "bin-path" => "/usr/bin/php.fcgi",
185 # ".pl" => "/usr/bin/perl",
186 # ".cgi" => "/usr/bin/perl",
190 #ssl.engine = "enable"
191 #ssl.pemfile = "server.pem"
194 #status.status-url = "/server-status"
195 #status.config-url = "/server-config"
198 ## read authentification.txt for more info
199 #auth.backend = "plain"
200 #auth.backend.plain.userfile = "lighttpd.user"
201 #auth.backend.plain.groupfile = "lighttpd.group"
203 #auth.backend.ldap.hostname = "localhost"
204 #auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
205 #auth.backend.ldap.filter = "(uid=$)"
208 # "/server-status" => (
209 # "method" => "digest",
210 # "realm" => "download archiv",
211 # "require" => "group=www|user=jan|host=192.168.2.10"
213 # "/server-info" => (
214 # "method" => "digest",
215 # "realm" => "download archiv",
216 # "require" => "group=www|user=jan|host=192.168.2.10"
220 #### url handling modules (rewrite, redirect, access)
221 #url.rewrite = ( "^/$" => "/server-status" )
222 #url.redirect = ( "^/wishlist/(.+)" => "http://www.123.org/$1" )
224 # define a pattern for the host url finding
226 # %0 => domain name + tld
228 # %2 => domain name without tld
229 # %3 => subdomain 1 name
230 # %4 => subdomain 2 name
232 #evhost.path-pattern = "/home/storage/dev/www/%3/htdocs/"
236 # "/buggy/" => "access 2 hours",
237 # "/asdhas/" => "access plus 1 seconds 2 minutes",
241 #ssi.extension = ( ".shtml" )
244 #rrdtool.binary = "/usr/bin/rrdtool"
245 #rrdtool.db-name = "/var/www/lighttpd.rrd"
248 #userdir.path = "public_html"
249 #userdir.exclude-user = ( "root", "postmaster" )
251 ## if set, only users from this list may use the feature
252 #userdir.include-user = ""
256 # "/cgi-bin/" => "/usr/lib/cgi-bin",