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