1 # lighttpd configuration file.
3 include_shell "for f in conf.d/*.conf ; do [ -f \"$f\" ] && echo \"include \\"$f\\"\" ; done"
5 ## a static document-root, for virtual-hosting take look at the
6 ## server.virtual-* options
7 server.document-root = "/home/services/lighttpd/html/"
9 ## where to send error-messages to
10 server.errorlog = "/var/log/lighttpd/error.log"
11 #server.errorlog-use-syslog = "enable"
13 ## http://redmine.lighttpd.net/projects/lighttpd/repository/revisions/2550
14 ## NOTE: It is not reopened in log_error_cycle, so don't setup logrotate to this.
15 server.breakagelog = "/var/log/lighttpd/breakage.log"
17 server.pid-file = "/var/run/lighttpd.pid"
20 include "mime.types.conf"
23 "" => "application/octet-stream",
26 ## set the event-handler (read the performance section in the manual)
27 # Linux 2.4+ rt-signals linux-rtsig
28 # Linux 2.6+ epoll linux-sysepoll
29 #server.event-handler = "linux-sysepoll"
31 ## The basic network interface for all platforms at the syscalls read()
32 ## and write(). Every modern OS provides its own syscall to help network
33 ## servers transfer files as fast as possible
35 ## linux-sendfile - is recommended for small files.
36 ## writev - is recommended for sending many large files
38 #server.network-backend = "linux-sendfile"
40 # default cames from ulimit -n
41 #server.max-fds = 8192
44 ## Stat() call caching.
46 ## lighttpd can utilize FAM/Gamin to cache stat call.
48 ## possible values are:
49 ## disable, simple or fam.
51 #server.stat-cache-engine = "simple"
54 ## Fine tuning for the request handling
56 ## max-connections == max-fds/2 (maybe /3)
57 ## means the other file handles are used for fastcgi/files
59 #server.max-connections = 1024
61 # maximum number of request within a keep-alive session before the server terminates the connection
63 #server.max-keep-alive-requests = 16
65 # Maximum number of seconds until an idling keep-alive connection is dropped.
67 #server.max-keep-alive-idle = 30
69 # maximum number of seconds until a waiting, non keep-alive read times out and closes the connection
71 #server.max-read-idle = 60
73 # maximum number of seconds until a waiting write call times out and closes the connection
75 #server.max-write-idle = 360
78 ## Maximum size of a request in kilobytes.
79 ## By default it is unlimited (0).
81 ## Uploads to your server can't be larger than this value.
83 #server.max-request-size = 0
85 # Use the "Content-Type" extended attribute to obtain mime type if possible
86 #mimetype.use-xattr = "enable"
89 ## Should lighttpd follow symlinks?
91 #server.follow-symlink = "enable"
94 ## force all filenames to be lowercase?
96 #server.force-lowercase-filenames = "disable"
99 ## defaults to /var/tmp as we assume it is a local harddisk
101 server.upload-dirs = ( "/var/tmp" )
104 ## The value for the "Server:" response field.
106 ## It would be nice to keep it at "lighttpd".
108 #server.tag = "lighttpd"
110 $HTTP["url"] =~ "\.pdf$" {
111 server.range-requests = "disable"
114 ## Skip responding with 417 for unhandled Expect header for some broken applications
115 #server.reject-expect-100-with-417 = "disable"
117 ######### Options that are good to be but not neccesary to be changed #######
119 ## bind to port (default: 80)
123 #server.use-ipv6 = "enable"
125 ## bind to specific host (default: all interfaces)
126 ## the name is resolved to ip at startup only.
127 #server.bind = "www.example.org"
129 ## additionally just bind to localhost:80
130 #$SERVER["socket"] == "127.0.0.1:80" {}
132 ## error-handler for status 404
133 #server.error-handler-404 = "/error-handler.html"
134 #server.error-handler-404 = "/error-handler.php"
137 ## Format: <errorfile-prefix><status-code>.html
138 ## -> ..../status-404.html for 'File not found'
139 #server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-"
142 # http://redmine.lighttpd.net/projects/lighttpd/wiki/DebugVariables
143 #debug.log-request-header = "enable"
144 #debug.log-request-header-on-error = "enable"
145 #debug.log-response-header = "enable"
146 #debug.log-request-handling = "enable"
147 #debug.log-file-not-found = "enable"
148 #debug.log-condition-handling = "enable"
149 #debug.log-condition-cache-handling = "enable"
150 #debug.log-timeouts = "enable"
151 #debug.log-ssl-noise = "enable"
153 ### only root can use these options
155 # chroot() to directory (default: no chroot() )
158 ## change uid to <uid> (default: don't care)
159 server.username = "lighttpd"
161 ## change uid to <uid> (default: don't care)
162 server.groupname = "lighttpd"
168 ## Values are in kilobyte per second.
170 ## Keep in mind that a limit below 32kB/s might actually limit the
171 ## traffic to 32kB/s. This is caused by the size of the TCP send
176 #server.kbytes-per-second = 128
181 #connection.kbytes-per-second = 32
184 include "webapps.d/*.conf"
187 include "vhosts.d/*.conf"