]> git.pld-linux.org Git - packages/lighttpd.git/blobdiff - lighttpd.conf
- requires --makepid capable rc-scripts
[packages/lighttpd.git] / lighttpd.conf
index 281d56e0f7177d88037acee1a4b7608d19500c9a..1922d5acb2c399a0277b7a8e0ce456130479926e 100644 (file)
@@ -9,17 +9,41 @@ 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, relative to dirname of main config file
 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
@@ -35,13 +59,20 @@ $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 localhost (default: all interfaces)
-#server.bind = "grisu.home.kneschke.de"
+## 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"
@@ -58,6 +89,7 @@ server.port = 80
 #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
 #
This page took 0.045505 seconds and 4 git commands to generate.