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