]> git.pld-linux.org Git - packages/lighttpd.git/blame_incremental - lighttpd.conf
update to 1.4.54
[packages/lighttpd.git] / lighttpd.conf
... / ...
CommitLineData
1# lighttpd configuration file.
2
3# modules config
4include "conf.d/*.conf"
5
6## a static document-root, for virtual-hosting take look at the
7## server.virtual-* options
8server.document-root = "/home/services/lighttpd/html/"
9
10## where to send error-messages to
11server.errorlog = "/var/log/lighttpd/error.log"
12#server.errorlog-use-syslog = "enable"
13
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
18server.pid-file = "/var/run/lighttpd.pid"
19
20# mimetype mapping
21include "mime.types.conf"
22# default mime type
23mimetype.assign += (
24 "" => "application/octet-stream",
25)
26
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
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
41# default cames from ulimit -n
42#server.max-fds = 8192
43
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
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
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
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
86# Use the "Content-Type" extended attribute to obtain mime type if possible
87#mimetype.use-xattr = "enable"
88
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##
109#server.tag = "lighttpd"
110
111$HTTP["url"] =~ "\.pdf$" {
112 server.range-requests = "disable"
113}
114
115## Skip responding with 417 for unhandled Expect header for some broken applications
116#server.reject-expect-100-with-417 = "disable"
117
118######### Options that are good to be but not neccesary to be changed #######
119
120## bind to port (default: 80)
121server.port = 80
122
123## Use IPv6?
124#server.use-ipv6 = "enable"
125
126## bind to specific host (default: all interfaces)
127## the name is resolved to ip at startup only.
128#server.bind = "www.example.org"
129
130## additionally just bind to localhost:80
131#$SERVER["socket"] == "127.0.0.1:80" {}
132
133## error-handler for status 404
134#server.error-handler-404 = "/error-handler.html"
135#server.error-handler-404 = "/error-handler.php"
136
137##
138## Format: <errorfile-prefix><status-code>.html
139## -> ..../status-404.html for 'File not found'
140#server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-"
141#
142## enable debugging
143# http://redmine.lighttpd.net/projects/lighttpd/wiki/DebugVariables
144#debug.log-request-header = "enable"
145#debug.log-request-header-on-error = "enable"
146#debug.log-response-header = "enable"
147#debug.log-request-handling = "enable"
148#debug.log-file-not-found = "enable"
149#debug.log-condition-handling = "enable"
150#debug.log-condition-cache-handling = "enable"
151#debug.log-timeouts = "enable"
152#debug.log-ssl-noise = "enable"
153
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)
160server.username = "lighttpd"
161
162## change uid to <uid> (default: don't care)
163server.groupname = "lighttpd"
164
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##
177#server.kbytes-per-second = 128
178
179##
180## per connection:
181##
182#connection.kbytes-per-second = 32
183
184# webapps config
185include "webapps.d/*.conf"
186
187# vhosts config
188include "vhosts.d/*.conf"
189
190## EOF
This page took 0.028856 seconds and 4 git commands to generate.