]> git.pld-linux.org Git - packages/lighttpd.git/blame - lighttpd.conf
- updated config from 1.3.14-20050420-191708 snap
[packages/lighttpd.git] / lighttpd.conf
CommitLineData
40f84542 1# lighttpd configuration file
7d62972e 2#
40f84542
AM
3# use a it as base for lighttpd 1.0.0 and above
4#
5# $Id$
6
7############ Options you really have to take care of ####################
8
9## modules to load
10# at least mod_access and mod_accesslog should be loaded
11# all other module should only be loaded if really neccesary
12# - saves some time
13# - saves memory
7d62972e
ER
14
15server.modules = (
16# "mod_rewrite",
17# "mod_redirect",
0a50e972 18# "mod_alias",
7d62972e
ER
19 "mod_access",
20# "mod_auth",
21# "mod_status",
0a50e972 22# "mod_setenv",
7d62972e 23# "mod_fastcgi",
0a50e972 24# "mod_proxy",
7d62972e
ER
25# "mod_simple_vhost",
26# "mod_evhost",
0a50e972 27# "mod_userdir",
7d62972e
ER
28# "mod_cgi",
29# "mod_compress",
7d62972e
ER
30# "mod_ssi",
31# "mod_usertrack",
42926b06 32# "mod_expire",
42926b06 33# "mod_secdownload",
0a50e972
ER
34# "mod_rrdtool",
35# "mod_localizer",
7d62972e
ER
36 "mod_accesslog",
37)
38
39## a static document-root, for virtual-hosting take look at the
40f84542 40## server.virtual-* options
7d62972e 41server.document-root = "/home/services/lighttpd/html/"
40f84542
AM
42
43## where to send error-messages to
7d62972e 44server.errorlog = "/var/log/lighttpd/lighttpd.log"
40f84542
AM
45
46# files to check for if .../ is requested
7d62972e
ER
47server.indexfiles = (
48 "index.php",
49 "index.html",
50 "index.htm",
51 "default.htm",
52)
40f84542
AM
53
54# mimetype mapping
7d62972e
ER
55mimetype.assign = (
56 ".pdf" => "application/pdf",
57 ".sig" => "application/pgp-signature",
58 ".spl" => "application/futuresplash",
59 ".class" => "application/octet-stream",
60 ".ps" => "application/postscript",
61 ".torrent" => "application/x-bittorrent",
62 ".dvi" => "application/x-dvi",
63 ".gz" => "application/x-gzip",
64 ".pac" => "application/x-ns-proxy-autoconfig",
65 ".swf" => "application/x-shockwave-flash",
66 ".tar.gz" => "application/x-tgz",
67 ".tgz" => "application/x-tgz",
68 ".tar" => "application/x-tar",
69 ".zip" => "application/zip",
70 ".mp3" => "audio/mpeg",
71 ".m3u" => "audio/x-mpegurl",
72 ".wma" => "audio/x-ms-wma",
73 ".wax" => "audio/x-ms-wax",
ef2634ff 74 ".ogg" => "application/ogg",
7d62972e
ER
75 ".wav" => "audio/x-wav",
76 ".gif" => "image/gif",
77 ".jpg" => "image/jpeg",
78 ".jpeg" => "image/jpeg",
79 ".png" => "image/png",
80 ".xbm" => "image/x-xbitmap",
81 ".xpm" => "image/x-xpixmap",
82 ".xwd" => "image/x-xwindowdump",
83 ".css" => "text/css",
84 ".html" => "text/html",
85 ".htm" => "text/html",
86 ".js" => "text/javascript",
87 ".asc" => "text/plain",
88 ".c" => "text/plain",
89 ".conf" => "text/plain",
90 ".text" => "text/plain",
91 ".txt" => "text/plain",
92 ".dtd" => "text/xml",
93 ".xml" => "text/xml",
94 ".mpeg" => "video/mpeg",
95 ".mpg" => "video/mpeg",
96 ".mov" => "video/quicktime",
97 ".qt" => "video/quicktime",
98 ".avi" => "video/x-msvideo",
99 ".asf" => "video/x-ms-asf",
100 ".asx" => "video/x-ms-asf",
ef2634ff
ER
101 ".wmv" => "video/x-ms-wmv",
102 ".bz2" => "application/x-bzip",
103 ".tbz" => "application/x-bzip-compressed-tar",
104 ".tar.bz2" => "application/x-bzip-compressed-tar"
dda0c1c2
ER
105)
106
107# Use the "Content-Type" extended attribute to obtain mime type if possible
7d62972e 108#mimetype.use-xattr = "enable"
2f595477 109
0a50e972
ER
110## send a different Server: header
111## be nice and keep it at lighttpd
112#server.tag = "lighttpd"
113
40f84542 114#### accesslog module
7d62972e 115accesslog.filename = "/var/log/lighttpd/access.log"
40f84542
AM
116
117## deny access the file-extensions
118#
119# ~ is for backupfiles from vi, emacs, joe, ...
120# .inc is often used for code includes which should in general not be part
121# of the document-root
7d62972e 122url.access-deny = ( "~", ".inc" )
40f84542
AM
123
124######### Options that are good to be but not neccesary to be changed #######
125
126## bind to port (default: 80)
7d62972e 127#server.port = 81
40f84542
AM
128
129## bind to localhost (default: all interfaces)
7d62972e 130#server.bind = "grisu.home.kneschke.de"
40f84542 131
dda0c1c2 132## error-handler for status 404
7d62972e
ER
133#server.error-handler-404 = "/error-handler.html"
134#server.error-handler-404 = "/error-handler.php"
dda0c1c2
ER
135
136## to help the rc.scripts
7d62972e 137#server.pid-file = "/var/run/lighttpd.pid"
40f84542
AM
138
139###### virtual hosts
140##
141## If you want name-based virtual hosting add the next three settings and load
142## mod_simple_vhost
143##
144## document-root =
145## virtual-server-root + virtual-server-default-host + virtual-server-docroot or
146## virtual-server-root + http-host + virtual-server-docroot
147##
148#simple-vhost.server-root = "/home/weigon/wwwroot/servers/"
149#simple-vhost.default-host = "grisu.home.kneschke.de"
150#simple-vhost.document-root = "/pages/"
151
152
7d62972e 153##
ef2634ff 154## Format: <errorfile-prefix><status-code>.html
40f84542 155## -> ..../status-404.html for 'File not found'
7d62972e 156#server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-"
40f84542
AM
157
158## virtual directory listings
159#server.dir-listing = "enable"
160
ae08eb54
ER
161## enable debugging
162#debug.log-request-header = "enable"
163#debug.log-response-header = "enable"
164#debug.log-request-handling = "enable"
165#debug.log-file-not-found = "enable"
166
40f84542
AM
167### only root can use these options
168#
169# chroot() to directory (default: no chroot() )
170#server.chroot = "/"
171
172## change uid to <uid> (default: don't care)
a2a346d6 173server.username = "lighttpd"
40f84542
AM
174
175## change uid to <uid> (default: don't care)
a2a346d6 176server.groupname = "lighttpd"
40f84542
AM
177
178#### compress module
179#compress.cache-dir = "/tmp/lighttpd/cache/compress/"
180#compress.filetype = ("text/plain", "text/html")
181
0a50e972
ER
182#### proxy module
183## read proxy.txt for more info
184#proxy.server = (
185# ".php" => (
186# "localhost" => (
187# "host" => "192.168.0.101",
188# "port" => 80,
189# )
190# )
191#)
192
40f84542 193#### fastcgi module
dda0c1c2 194## read fastcgi.txt for more info
c799b856 195#fastcgi.debug = 1
7d62972e
ER
196#fastcgi.server = (
197# ".php" => (
198# "localhost" => (
199# "socket" => "/var/run/php/php-fastcgi.sock",
200# "bin-path" => "/usr/bin/php.fcgi",
201# )
202# )
203#)
204
40f84542
AM
205
206#### CGI module
7d62972e
ER
207#cgi.assign = (
208# ".pl" => "/usr/bin/perl",
209# ".cgi" => "/usr/bin/perl",
210#)
40f84542
AM
211
212#### SSL engine
7d62972e
ER
213#ssl.engine = "enable"
214#ssl.pemfile = "server.pem"
40f84542
AM
215
216#### status module
7d62972e
ER
217#status.status-url = "/server-status"
218#status.config-url = "/server-config"
40f84542
AM
219
220#### auth module
dda0c1c2 221## read authentification.txt for more info
37252fd1
ER
222## debugging
223# 0 for off, 1 for 'auth-ok' messages, 2 for verbose debugging
224#auth.debug = 1
225## type of backend
226# plain, htpasswd, ldap or htdigest
227#auth.backend = "plain"
228# filename of the password storage
229## for plain
230#auth.backend.plain.userfile = "/etc/lighttpd/lighttpd.user"
231#auth.backend.plain.groupfile = "/etc/lighttpd/lighttpd.group"
232## for htpasswd
233#auth.backend.htpasswd.userfile = "/etc/lighttpd/lighttpd-htpasswd.user"
234## for htdigest
235#auth.backend.htdigest.userfile = "/etc/lighttpd/lighttpd-htdigest.user"
236## for ldap
237# the $ in auth.backend.ldap.filter is replaced by the
238# 'username' from the login dialog
7d62972e
ER
239#auth.backend.ldap.hostname = "localhost"
240#auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
241#auth.backend.ldap.filter = "(uid=$)"
242
243#auth.require = (
244# "/server-status" => (
245# "method" => "digest",
246# "realm" => "download archiv",
37252fd1 247# "require" => "user=agent007|user=agent008"
7d62972e
ER
248# ),
249# "/server-info" => (
250# "method" => "digest",
251# "realm" => "download archiv",
252# "require" => "group=www|user=jan|host=192.168.2.10"
253# ),
37252fd1
ER
254# "/server-config" => (
255# "method" => "ldap",
256# "realm" => "server config",
257# "require" => "user=glen"
258# ),
7d62972e 259#)
40f84542 260
37252fd1 261
40f84542 262#### url handling modules (rewrite, redirect, access)
c799b856
ER
263#url.rewrite = (
264# "^/$" => "/server-status",
265#)
266#url.redirect = (
267# "^/wishlist/(.+)" => "http://www.123.org/$1",
268#)
dda0c1c2
ER
269
270# define a pattern for the host url finding
271# %% => % sign
272# %0 => domain name + tld
273# %1 => tld
274# %2 => domain name without tld
275# %3 => subdomain 1 name
276# %4 => subdomain 2 name
277#
7d62972e 278#evhost.path-pattern = "/home/storage/dev/www/%3/htdocs/"
40f84542 279
9d396dc3 280#### expire module
7d62972e
ER
281#expire.url = (
282# "/buggy/" => "access 2 hours",
283# "/asdhas/" => "access plus 1 seconds 2 minutes",
284#)
dda0c1c2
ER
285
286#### ssi
7d62972e 287#ssi.extension = ( ".shtml" )
dda0c1c2
ER
288
289#### rrdtool
7d62972e
ER
290#rrdtool.binary = "/usr/bin/rrdtool"
291#rrdtool.db-name = "/var/www/lighttpd.rrd"
9d396dc3 292
0a50e972
ER
293#### setenv
294#setenv.add-request-header = ( "TRAV_ENV" => "mysql://user@host/db" )
295#setenv.add-response-header = ( "X-Secret-Message" => "42" )
296
5c1a52cc 297#### userdir module
7d62972e
ER
298#userdir.path = "public_html"
299#userdir.exclude-user = ( "root", "postmaster" )
5c1a52cc
MW
300#
301## if set, only users from this list may use the feature
7d62972e 302#userdir.include-user = ""
5c1a52cc
MW
303
304#### alias module
7d62972e 305#alias.url = (
7529b2c6 306# "/cgi-bin/" => "/usr/lib/cgi-bin",
7d62972e
ER
307#)
308
This page took 0.199091 seconds and 4 git commands to generate.