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 # default cames from ulimit -n
32 #server.max-fds = 8192
34 # maximum number of request within a keep-alive session before the server terminates the connection
36 #server.max-keep-alive-requests = 16
38 # Maximum number of seconds until an idling keep-alive connection is dropped.
40 #server.max-keep-alive-idle = 30
42 # maximum number of seconds until a waiting, non keep-alive read times out and closes the connection
44 #server.max-read-idle = 60
46 # maximum number of seconds until a waiting write call times out and closes the connection
48 #server.max-write-idle = 360
50 # Use the "Content-Type" extended attribute to obtain mime type if possible
51 #mimetype.use-xattr = "enable"
53 ## send a different Server: header
54 ## be nice and keep it at lighttpd
55 #server.tag = "lighttpd"
57 $HTTP["url"] =~ "\.pdf$" {
58 server.range-requests = "disable"
61 ## Skip responding with 417 for unhandled Expect header for some broken applications
62 #server.reject-expect-100-with-417 = "disable"
64 ######### Options that are good to be but not neccesary to be changed #######
66 ## bind to port (default: 80)
69 ## bind to specific host (default: all interfaces)
70 ## the name is resolved to ip at startup only.
71 #server.bind = "www.example.org"
73 ## additionally just bind to localhost:80
74 #$SERVER["socket"] == "127.0.0.1:80" {}
76 ## error-handler for status 404
77 #server.error-handler-404 = "/error-handler.html"
78 #server.error-handler-404 = "/error-handler.php"
81 ## Format: <errorfile-prefix><status-code>.html
82 ## -> ..../status-404.html for 'File not found'
83 #server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-"
86 #debug.log-request-header = "enable"
87 #debug.log-response-header = "enable"
88 #debug.log-request-handling = "enable"
89 #debug.log-file-not-found = "enable"
90 #debug.log-condition-handling = "enable"
91 #debug.log-timeouts = "enable"
93 ### only root can use these options
95 # chroot() to directory (default: no chroot() )
98 ## change uid to <uid> (default: don't care)
99 server.username = "lighttpd"
101 ## change uid to <uid> (default: don't care)
102 server.groupname = "lighttpd"
106 #connection.kbytes-per-second = 32
107 #server.kbytes-per-second = 128
110 include_shell "for f in webapps.d/*.conf ; do [ -f \"$f\" ] && echo \"include \\"$f\\"\" ; done"
113 include_shell "for f in vhosts.d/*.conf ; do [ -f \"$f\" ] && echo \"include \\"$f\\"\" ; done"