]> git.pld-linux.org Git - packages/lighttpd.git/blame - lighttpd.conf
- valgrind bcond
[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",
18 "mod_access",
19# "mod_auth",
20# "mod_status",
21# "mod_fastcgi",
22# "mod_simple_vhost",
23# "mod_evhost",
24# "mod_cgi",
25# "mod_compress",
26# "mod_userdir",
27# "mod_alias",
28# "mod_ssi",
29# "mod_usertrack",
30# "mod_rrdtool",
42926b06
ER
31# "mod_expire",
32# "mod_localizer",
33# "mod_proxy",
34# "mod_secdownload",
7d62972e
ER
35 "mod_accesslog",
36)
37
38## a static document-root, for virtual-hosting take look at the
40f84542 39## server.virtual-* options
7d62972e 40server.document-root = "/home/services/lighttpd/html/"
40f84542
AM
41
42## where to send error-messages to
7d62972e 43server.errorlog = "/var/log/lighttpd/lighttpd.log"
40f84542
AM
44
45# files to check for if .../ is requested
7d62972e
ER
46server.indexfiles = (
47 "index.php",
48 "index.html",
49 "index.htm",
50 "default.htm",
51)
40f84542
AM
52
53# mimetype mapping
7d62972e
ER
54mimetype.assign = (
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",
82 ".css" => "text/css",
83 ".html" => "text/html",
84 ".htm" => "text/html",
85 ".js" => "text/javascript",
86 ".asc" => "text/plain",
87 ".c" => "text/plain",
88 ".conf" => "text/plain",
89 ".text" => "text/plain",
90 ".txt" => "text/plain",
91 ".dtd" => "text/xml",
92 ".xml" => "text/xml",
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"
dda0c1c2
ER
101)
102
103# Use the "Content-Type" extended attribute to obtain mime type if possible
7d62972e 104#mimetype.use-xattr = "enable"
2f595477 105
40f84542 106#### accesslog module
7d62972e 107accesslog.filename = "/var/log/lighttpd/access.log"
40f84542
AM
108
109## deny access the file-extensions
110#
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
7d62972e 114url.access-deny = ( "~", ".inc" )
40f84542
AM
115
116######### Options that are good to be but not neccesary to be changed #######
117
118## bind to port (default: 80)
7d62972e 119#server.port = 81
40f84542
AM
120
121## bind to localhost (default: all interfaces)
7d62972e 122#server.bind = "grisu.home.kneschke.de"
40f84542 123
dda0c1c2 124## error-handler for status 404
7d62972e
ER
125#server.error-handler-404 = "/error-handler.html"
126#server.error-handler-404 = "/error-handler.php"
dda0c1c2
ER
127
128## to help the rc.scripts
7d62972e 129#server.pid-file = "/var/run/lighttpd.pid"
40f84542
AM
130
131###### virtual hosts
132##
133## If you want name-based virtual hosting add the next three settings and load
134## mod_simple_vhost
135##
136## document-root =
137## virtual-server-root + virtual-server-default-host + virtual-server-docroot or
138## virtual-server-root + http-host + virtual-server-docroot
139##
140#simple-vhost.server-root = "/home/weigon/wwwroot/servers/"
141#simple-vhost.default-host = "grisu.home.kneschke.de"
142#simple-vhost.document-root = "/pages/"
143
144
7d62972e 145##
40f84542
AM
146## Format: <errorfile-prefix><status>.html
147## -> ..../status-404.html for 'File not found'
7d62972e 148#server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-"
40f84542
AM
149
150## virtual directory listings
151#server.dir-listing = "enable"
152
153## send unhandled HTTP-header headers to error-log
154#debug.dump-unknown-headers = "enable"
155
156### only root can use these options
157#
158# chroot() to directory (default: no chroot() )
159#server.chroot = "/"
160
161## change uid to <uid> (default: don't care)
a2a346d6 162server.username = "lighttpd"
40f84542
AM
163
164## change uid to <uid> (default: don't care)
a2a346d6 165server.groupname = "lighttpd"
40f84542
AM
166
167#### compress module
168#compress.cache-dir = "/tmp/lighttpd/cache/compress/"
169#compress.filetype = ("text/plain", "text/html")
170
171#### fastcgi module
dda0c1c2 172## read fastcgi.txt for more info
c799b856 173#fastcgi.debug = 1
7d62972e
ER
174#fastcgi.server = (
175# ".php" => (
176# "localhost" => (
177# "socket" => "/var/run/php/php-fastcgi.sock",
178# "bin-path" => "/usr/bin/php.fcgi",
179# )
180# )
181#)
182
40f84542
AM
183
184#### CGI module
7d62972e
ER
185#cgi.assign = (
186# ".pl" => "/usr/bin/perl",
187# ".cgi" => "/usr/bin/perl",
188#)
40f84542
AM
189
190#### SSL engine
7d62972e
ER
191#ssl.engine = "enable"
192#ssl.pemfile = "server.pem"
40f84542
AM
193
194#### status module
7d62972e
ER
195#status.status-url = "/server-status"
196#status.config-url = "/server-config"
40f84542
AM
197
198#### auth module
dda0c1c2 199## read authentification.txt for more info
37252fd1
ER
200## debugging
201# 0 for off, 1 for 'auth-ok' messages, 2 for verbose debugging
202#auth.debug = 1
203## type of backend
204# plain, htpasswd, ldap or htdigest
205#auth.backend = "plain"
206# filename of the password storage
207## for plain
208#auth.backend.plain.userfile = "/etc/lighttpd/lighttpd.user"
209#auth.backend.plain.groupfile = "/etc/lighttpd/lighttpd.group"
210## for htpasswd
211#auth.backend.htpasswd.userfile = "/etc/lighttpd/lighttpd-htpasswd.user"
212## for htdigest
213#auth.backend.htdigest.userfile = "/etc/lighttpd/lighttpd-htdigest.user"
214## for ldap
215# the $ in auth.backend.ldap.filter is replaced by the
216# 'username' from the login dialog
7d62972e
ER
217#auth.backend.ldap.hostname = "localhost"
218#auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
219#auth.backend.ldap.filter = "(uid=$)"
220
221#auth.require = (
222# "/server-status" => (
223# "method" => "digest",
224# "realm" => "download archiv",
37252fd1 225# "require" => "user=agent007|user=agent008"
7d62972e
ER
226# ),
227# "/server-info" => (
228# "method" => "digest",
229# "realm" => "download archiv",
230# "require" => "group=www|user=jan|host=192.168.2.10"
231# ),
37252fd1
ER
232# "/server-config" => (
233# "method" => "ldap",
234# "realm" => "server config",
235# "require" => "user=glen"
236# ),
7d62972e 237#)
40f84542 238
37252fd1 239
40f84542 240#### url handling modules (rewrite, redirect, access)
c799b856
ER
241#url.rewrite = (
242# "^/$" => "/server-status",
243#)
244#url.redirect = (
245# "^/wishlist/(.+)" => "http://www.123.org/$1",
246#)
dda0c1c2
ER
247
248# define a pattern for the host url finding
249# %% => % sign
250# %0 => domain name + tld
251# %1 => tld
252# %2 => domain name without tld
253# %3 => subdomain 1 name
254# %4 => subdomain 2 name
255#
7d62972e 256#evhost.path-pattern = "/home/storage/dev/www/%3/htdocs/"
40f84542 257
9d396dc3 258#### expire module
7d62972e
ER
259#expire.url = (
260# "/buggy/" => "access 2 hours",
261# "/asdhas/" => "access plus 1 seconds 2 minutes",
262#)
dda0c1c2
ER
263
264#### ssi
7d62972e 265#ssi.extension = ( ".shtml" )
dda0c1c2
ER
266
267#### rrdtool
7d62972e
ER
268#rrdtool.binary = "/usr/bin/rrdtool"
269#rrdtool.db-name = "/var/www/lighttpd.rrd"
9d396dc3 270
5c1a52cc 271#### userdir module
7d62972e
ER
272#userdir.path = "public_html"
273#userdir.exclude-user = ( "root", "postmaster" )
5c1a52cc
MW
274#
275## if set, only users from this list may use the feature
7d62972e 276#userdir.include-user = ""
5c1a52cc
MW
277
278#### alias module
7d62972e 279#alias.url = (
7529b2c6 280# "/cgi-bin/" => "/usr/lib/cgi-bin",
7d62972e
ER
281#)
282
This page took 0.112127 seconds and 4 git commands to generate.