]> git.pld-linux.org Git - packages/lighttpd.git/blame - lighttpd.conf
- patch unix part not windows, sigh
[packages/lighttpd.git] / lighttpd.conf
CommitLineData
40f84542 1# $Id$
695964e9 2# lighttpd configuration file.
40f84542 3
695964e9 4include_shell "/bin/cat conf.d/*.conf"
7d62972e
ER
5
6## a static document-root, for virtual-hosting take look at the
40f84542 7## server.virtual-* options
7d62972e 8server.document-root = "/home/services/lighttpd/html/"
40f84542
AM
9
10## where to send error-messages to
9c5fe8f8 11server.errorlog = "/var/log/lighttpd/error.log"
e2b4170d 12server.pid-file = "/var/run/lighttpd.pid"
40f84542 13
695964e9
ER
14# mimetype mapping
15# include, relative to dirname of main config file
16include "mime.types.conf"
40f84542 17
b3b8d2ec
ER
18## set the event-handler (read the performance section in the manual)
19# Linux 2.4+ rt-signals linux-rtsig
20# Linux 2.6+ epoll linux-sysepoll
21#server.event-handler = "linux-sysepoll"
22
dda0c1c2 23# Use the "Content-Type" extended attribute to obtain mime type if possible
7d62972e 24#mimetype.use-xattr = "enable"
2f595477 25
0a50e972
ER
26## send a different Server: header
27## be nice and keep it at lighttpd
28#server.tag = "lighttpd"
29
b3b8d2ec
ER
30$HTTP["url"] =~ "\.pdf$" {
31 server.range-requests = "disable"
32}
33
40f84542
AM
34######### Options that are good to be but not neccesary to be changed #######
35
36## bind to port (default: 80)
695964e9 37server.port = 80
40f84542
AM
38
39## bind to localhost (default: all interfaces)
7d62972e 40#server.bind = "grisu.home.kneschke.de"
40f84542 41
dda0c1c2 42## error-handler for status 404
7d62972e
ER
43#server.error-handler-404 = "/error-handler.html"
44#server.error-handler-404 = "/error-handler.php"
dda0c1c2 45
7d62972e 46##
ef2634ff 47## Format: <errorfile-prefix><status-code>.html
40f84542 48## -> ..../status-404.html for 'File not found'
7d62972e 49#server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-"
695964e9 50#
ae08eb54
ER
51## enable debugging
52#debug.log-request-header = "enable"
53#debug.log-response-header = "enable"
54#debug.log-request-handling = "enable"
55#debug.log-file-not-found = "enable"
695964e9 56#debug.log-condition-handling = "enable"
ae08eb54 57
40f84542
AM
58### only root can use these options
59#
60# chroot() to directory (default: no chroot() )
61#server.chroot = "/"
62
63## change uid to <uid> (default: don't care)
a2a346d6 64server.username = "lighttpd"
40f84542
AM
65
66## change uid to <uid> (default: don't care)
a2a346d6 67server.groupname = "lighttpd"
40f84542 68
a1367ea7
SP
69# Traffic Shaping
70#
71#connection.kbytes-per-second = 32
72#server.kbytes-per-second = 128
73
695964e9 74# webapps configs
68cdbb97 75include_shell "/bin/cat webapps.d/*.conf"
This page took 0.086811 seconds and 4 git commands to generate.