]> git.pld-linux.org Git - packages/lighttpd.git/blame - lighttpd.conf
variable for daemon processes
[packages/lighttpd.git] / lighttpd.conf
CommitLineData
40f84542 1# $Id$
695964e9 2# lighttpd configuration file.
40f84542 3
97785bcf 4include_shell "for f in conf.d/*.conf ; do [ -f \"$f\" ] && echo \"include \\"$f\\"\" ; done"
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
54a99178
ER
14## http://redmine.lighttpd.net/projects/lighttpd/repository/revisions/2550
15## NOTE: It is not reopened in log_error_cycle, so don't setup logrotate to this.
16server.breakagelog = "/var/log/lighttpd/breakage.log"
17
e2b4170d 18server.pid-file = "/var/run/lighttpd.pid"
40f84542 19
695964e9 20# mimetype mapping
695964e9 21include "mime.types.conf"
0657595d
ER
22# default mime type
23mimetype.assign += (
24 "" => "application/octet-stream",
25)
40f84542 26
b3b8d2ec
ER
27## set the event-handler (read the performance section in the manual)
28# Linux 2.4+ rt-signals linux-rtsig
29# Linux 2.6+ epoll linux-sysepoll
30#server.event-handler = "linux-sysepoll"
31
92a79f62
ER
32# default cames from ulimit -n
33#server.max-fds = 8192
34
35# maximum number of request within a keep-alive session before the server terminates the connection
36# default 16
37#server.max-keep-alive-requests = 16
38
39# Maximum number of seconds until an idling keep-alive connection is dropped.
40# default 30
41#server.max-keep-alive-idle = 30
42
43# maximum number of seconds until a waiting, non keep-alive read times out and closes the connection
44# default 60
45#server.max-read-idle = 60
46
7fd78350
ER
47# maximum number of seconds until a waiting write call times out and closes the connection
48# default 360
49#server.max-write-idle = 360
50
dda0c1c2 51# Use the "Content-Type" extended attribute to obtain mime type if possible
7d62972e 52#mimetype.use-xattr = "enable"
2f595477 53
0a50e972
ER
54## send a different Server: header
55## be nice and keep it at lighttpd
56#server.tag = "lighttpd"
57
b3b8d2ec
ER
58$HTTP["url"] =~ "\.pdf$" {
59 server.range-requests = "disable"
60}
61
1cfa39cd
ER
62## Skip responding with 417 for unhandled Expect header for some broken applications
63#server.reject-expect-100-with-417 = "disable"
64
40f84542
AM
65######### Options that are good to be but not neccesary to be changed #######
66
67## bind to port (default: 80)
695964e9 68server.port = 80
40f84542 69
cb3c4066
ER
70## bind to specific host (default: all interfaces)
71## the name is resolved to ip at startup only.
a56072fe 72#server.bind = "www.example.org"
40f84542 73
cb3c4066
ER
74## additionally just bind to localhost:80
75#$SERVER["socket"] == "127.0.0.1:80" {}
76
dda0c1c2 77## error-handler for status 404
7d62972e
ER
78#server.error-handler-404 = "/error-handler.html"
79#server.error-handler-404 = "/error-handler.php"
dda0c1c2 80
7d62972e 81##
ef2634ff 82## Format: <errorfile-prefix><status-code>.html
40f84542 83## -> ..../status-404.html for 'File not found'
7d62972e 84#server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-"
695964e9 85#
ae08eb54
ER
86## enable debugging
87#debug.log-request-header = "enable"
88#debug.log-response-header = "enable"
89#debug.log-request-handling = "enable"
90#debug.log-file-not-found = "enable"
695964e9 91#debug.log-condition-handling = "enable"
103de0f5 92#debug.log-timeouts = "enable"
ae08eb54 93
40f84542
AM
94### only root can use these options
95#
96# chroot() to directory (default: no chroot() )
97#server.chroot = "/"
98
99## change uid to <uid> (default: don't care)
a2a346d6 100server.username = "lighttpd"
40f84542
AM
101
102## change uid to <uid> (default: don't care)
a2a346d6 103server.groupname = "lighttpd"
40f84542 104
a1367ea7
SP
105# Traffic Shaping
106#
107#connection.kbytes-per-second = 32
108#server.kbytes-per-second = 128
109
695964e9 110# webapps configs
97785bcf 111include_shell "for f in webapps.d/*.conf ; do [ -f \"$f\" ] && echo \"include \\"$f\\"\" ; done"
59e91e4a
ER
112
113# vhosts config
97785bcf 114include_shell "for f in vhosts.d/*.conf ; do [ -f \"$f\" ] && echo \"include \\"$f\\"\" ; done"
This page took 0.087645 seconds and 4 git commands to generate.