]> git.pld-linux.org Git - packages/lighttpd.git/blame - lighttpd.conf
- 1.4.50 breaks include_shell with our scriptlet, use glob include
[packages/lighttpd.git] / lighttpd.conf
CommitLineData
695964e9 1# lighttpd configuration file.
40f84542 2
126c0d6a
ER
3# modules config
4include_shell "for f in conf.d/*.conf; do [ -f \"$f\" ] && echo \"include \\"$f\\"\"; done; exit 0"
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
20f769ed
ER
32## The basic network interface for all platforms at the syscalls read()
33## and write(). Every modern OS provides its own syscall to help network
34## servers transfer files as fast as possible
35##
36## linux-sendfile - is recommended for small files.
37## writev - is recommended for sending many large files
38##
39#server.network-backend = "linux-sendfile"
40
92a79f62
ER
41# default cames from ulimit -n
42#server.max-fds = 8192
43
20f769ed
ER
44##
45## Stat() call caching.
46##
47## lighttpd can utilize FAM/Gamin to cache stat call.
48##
49## possible values are:
50## disable, simple or fam.
51##
52#server.stat-cache-engine = "simple"
53
54##
55## Fine tuning for the request handling
56##
57## max-connections == max-fds/2 (maybe /3)
58## means the other file handles are used for fastcgi/files
59##
60#server.max-connections = 1024
61
92a79f62
ER
62# maximum number of request within a keep-alive session before the server terminates the connection
63# default 16
64#server.max-keep-alive-requests = 16
65
66# Maximum number of seconds until an idling keep-alive connection is dropped.
67# default 30
68#server.max-keep-alive-idle = 30
69
70# maximum number of seconds until a waiting, non keep-alive read times out and closes the connection
71# default 60
72#server.max-read-idle = 60
73
7fd78350
ER
74# maximum number of seconds until a waiting write call times out and closes the connection
75# default 360
76#server.max-write-idle = 360
77
20f769ed
ER
78##
79## Maximum size of a request in kilobytes.
80## By default it is unlimited (0).
81##
82## Uploads to your server can't be larger than this value.
83##
84#server.max-request-size = 0
85
dda0c1c2 86# Use the "Content-Type" extended attribute to obtain mime type if possible
7d62972e 87#mimetype.use-xattr = "enable"
2f595477 88
20f769ed
ER
89##
90## Should lighttpd follow symlinks?
91##
92#server.follow-symlink = "enable"
93
94##
95## force all filenames to be lowercase?
96##
97#server.force-lowercase-filenames = "disable"
98
99##
100## defaults to /var/tmp as we assume it is a local harddisk
101##
102server.upload-dirs = ( "/var/tmp" )
103
104##
105## The value for the "Server:" response field.
106##
107## It would be nice to keep it at "lighttpd".
108##
0a50e972
ER
109#server.tag = "lighttpd"
110
b3b8d2ec
ER
111$HTTP["url"] =~ "\.pdf$" {
112 server.range-requests = "disable"
113}
114
1cfa39cd
ER
115## Skip responding with 417 for unhandled Expect header for some broken applications
116#server.reject-expect-100-with-417 = "disable"
117
40f84542
AM
118######### Options that are good to be but not neccesary to be changed #######
119
120## bind to port (default: 80)
695964e9 121server.port = 80
40f84542 122
20f769ed
ER
123## Use IPv6?
124#server.use-ipv6 = "enable"
125
cb3c4066
ER
126## bind to specific host (default: all interfaces)
127## the name is resolved to ip at startup only.
a56072fe 128#server.bind = "www.example.org"
40f84542 129
cb3c4066
ER
130## additionally just bind to localhost:80
131#$SERVER["socket"] == "127.0.0.1:80" {}
132
dda0c1c2 133## error-handler for status 404
7d62972e
ER
134#server.error-handler-404 = "/error-handler.html"
135#server.error-handler-404 = "/error-handler.php"
dda0c1c2 136
7d62972e 137##
ef2634ff 138## Format: <errorfile-prefix><status-code>.html
40f84542 139## -> ..../status-404.html for 'File not found'
7d62972e 140#server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-"
695964e9 141#
ae08eb54 142## enable debugging
e91e6bd0 143# http://redmine.lighttpd.net/projects/lighttpd/wiki/DebugVariables
ae08eb54 144#debug.log-request-header = "enable"
e91e6bd0 145#debug.log-request-header-on-error = "enable"
ae08eb54
ER
146#debug.log-response-header = "enable"
147#debug.log-request-handling = "enable"
148#debug.log-file-not-found = "enable"
695964e9 149#debug.log-condition-handling = "enable"
e91e6bd0 150#debug.log-condition-cache-handling = "enable"
103de0f5 151#debug.log-timeouts = "enable"
e91e6bd0 152#debug.log-ssl-noise = "enable"
ae08eb54 153
40f84542
AM
154### only root can use these options
155#
156# chroot() to directory (default: no chroot() )
157#server.chroot = "/"
158
159## change uid to <uid> (default: don't care)
20f769ed 160server.username = "lighttpd"
40f84542
AM
161
162## change uid to <uid> (default: don't care)
20f769ed 163server.groupname = "lighttpd"
40f84542 164
20f769ed
ER
165##
166## Traffic Shaping
167## -----------------
168##
169## Values are in kilobyte per second.
170##
171## Keep in mind that a limit below 32kB/s might actually limit the
172## traffic to 32kB/s. This is caused by the size of the TCP send
173## buffer.
174##
175## per server:
176##
a1367ea7
SP
177#server.kbytes-per-second = 128
178
20f769ed
ER
179##
180## per connection:
181##
182#connection.kbytes-per-second = 32
183
126c0d6a 184# webapps config
d71e30e2 185include "webapps.d/*.conf"
59e91e4a
ER
186
187# vhosts config
d71e30e2 188include "vhosts.d/*.conf"
126c0d6a
ER
189
190## EOF
This page took 0.097344 seconds and 4 git commands to generate.