# $Id$ # lighttpd configuration file. include_shell "for f in conf.d/*.conf ; do [ -f \"$f\" ] && echo \"include \\"$f\\"\" ; done" ## a static document-root, for virtual-hosting take look at the ## server.virtual-* options server.document-root = "/home/services/lighttpd/html/" ## where to send error-messages to server.errorlog = "/var/log/lighttpd/error.log" #server.errorlog-use-syslog = "enable" ## http://redmine.lighttpd.net/projects/lighttpd/repository/revisions/2550 ## NOTE: It is not reopened in log_error_cycle, so don't setup logrotate to this. server.breakagelog = "/var/log/lighttpd/breakage.log" server.pid-file = "/var/run/lighttpd.pid" # mimetype mapping include "mime.types.conf" # default mime type mimetype.assign += ( "" => "application/octet-stream", ) ## set the event-handler (read the performance section in the manual) # Linux 2.4+ rt-signals linux-rtsig # Linux 2.6+ epoll linux-sysepoll #server.event-handler = "linux-sysepoll" # default cames from ulimit -n #server.max-fds = 8192 # maximum number of request within a keep-alive session before the server terminates the connection # default 16 #server.max-keep-alive-requests = 16 # Maximum number of seconds until an idling keep-alive connection is dropped. # default 30 #server.max-keep-alive-idle = 30 # maximum number of seconds until a waiting, non keep-alive read times out and closes the connection # default 60 #server.max-read-idle = 60 # maximum number of seconds until a waiting write call times out and closes the connection # default 360 #server.max-write-idle = 360 # Use the "Content-Type" extended attribute to obtain mime type if possible #mimetype.use-xattr = "enable" ## send a different Server: header ## be nice and keep it at lighttpd #server.tag = "lighttpd" $HTTP["url"] =~ "\.pdf$" { server.range-requests = "disable" } ## Skip responding with 417 for unhandled Expect header for some broken applications #server.reject-expect-100-with-417 = "disable" ######### Options that are good to be but not neccesary to be changed ####### ## bind to port (default: 80) server.port = 80 ## bind to specific host (default: all interfaces) ## the name is resolved to ip at startup only. #server.bind = "www.example.org" ## additionally just bind to localhost:80 #$SERVER["socket"] == "127.0.0.1:80" {} ## error-handler for status 404 #server.error-handler-404 = "/error-handler.html" #server.error-handler-404 = "/error-handler.php" ## ## Format: .html ## -> ..../status-404.html for 'File not found' #server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-" # ## enable debugging #debug.log-request-header = "enable" #debug.log-response-header = "enable" #debug.log-request-handling = "enable" #debug.log-file-not-found = "enable" #debug.log-condition-handling = "enable" #debug.log-timeouts = "enable" ### only root can use these options # # chroot() to directory (default: no chroot() ) #server.chroot = "/" ## change uid to (default: don't care) server.username = "lighttpd" ## change uid to (default: don't care) server.groupname = "lighttpd" # Traffic Shaping # #connection.kbytes-per-second = 32 #server.kbytes-per-second = 128 # webapps configs include_shell "for f in webapps.d/*.conf ; do [ -f \"$f\" ] && echo \"include \\"$f\\"\" ; done" # vhosts config include_shell "for f in vhosts.d/*.conf ; do [ -f \"$f\" ] && echo \"include \\"$f\\"\" ; done"