openbsd-ports/www/lighttpd/patches/patch-doc_lighttpd_conf
2009-06-19 23:12:03 +00:00

103 lines
3.4 KiB
Plaintext

$OpenBSD: patch-doc_lighttpd_conf,v 1.8 2009/06/19 23:12:03 sthen Exp $
--- doc/lighttpd.conf.orig Thu Apr 9 16:02:00 2009
+++ doc/lighttpd.conf Mon Jun 15 01:09:14 2009
@@ -36,18 +36,24 @@ server.modules = (
## A static document-root. For virtual hosting take a look at the
## mod_simple_vhost module.
-server.document-root = "/srv/www/htdocs/"
+server.document-root = "htdocs/"
+#### accesslog module
+accesslog.filename = "logs/access.log"
+
## where to send error-messages to
-server.errorlog = "/var/log/lighttpd/error.log"
+server.errorlog = "logs/error.log"
# files to check for if .../ is requested
-index-file.names = ( "index.php", "index.html",
- "index.htm", "default.htm" )
+index-file.names = ( "index.html", "index.htm", "default.htm" )
-## set the event-handler (read the performance section in the manual)
-# server.event-handler = "freebsd-kqueue" # needed on OS X
+server.event-handler = "kqueue"
+server.network-backend = "writev"
+server.use-ipv6 = "enable"
+
+$SERVER["socket"] == "0.0.0.0:80" { }
+
# mimetype mapping
mimetype.assign = (
".pdf" => "application/pdf",
@@ -109,14 +115,10 @@ mimetype.assign = (
# 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"
-#### accesslog module
-accesslog.filename = "/var/log/lighttpd/access.log"
-
## deny access the file-extensions
#
# ~ is for backupfiles from vi, emacs, joe, ...
@@ -136,20 +138,13 @@ static-file.exclude-extensions = ( ".php", ".pl", ".fc
######### Options that are good to be but not neccesary to be changed #######
-## bind to port (default: 80)
-#server.port = 81
-
-## bind to localhost (default: all interfaces)
-#server.bind = "127.0.0.1"
-
## error-handler for status 404
#server.error-handler-404 = "/error-handler.html"
#server.error-handler-404 = "/error-handler.php"
## to help the rc.scripts
-#server.pid-file = "/var/run/lighttpd.pid"
+server.pid-file = "/var/run/lighttpd.pid"
-
###### virtual hosts
##
## If you want name-based virtual hosting add the next three settings and load
@@ -182,17 +177,12 @@ static-file.exclude-extensions = ( ".php", ".pl", ".fc
#debug.log-request-handling = "enable"
#debug.log-file-not-found = "enable"
-### only root can use these options
-#
-# chroot() to directory (default: no chroot() )
-#server.chroot = "/"
+# chroot() to directory
+server.chroot = "/var/www/"
-## change uid to <uid> (default: don't care)
-#server.username = "wwwrun"
+server.username = "_lighttpd"
+server.groupname = "_lighttpd"
-## change uid to <uid> (default: don't care)
-#server.groupname = "wwwrun"
-
#### compress module
#compress.cache-dir = "/var/cache/lighttpd/compress/"
#compress.filetype = ("text/plain", "text/html")
@@ -283,7 +273,7 @@ static-file.exclude-extensions = ( ".php", ".pl", ".fc
#ssi.extension = ( ".shtml" )
#### rrdtool
-#rrdtool.binary = "/usr/bin/rrdtool"
+#rrdtool.binary = "/usr/local/bin/rrdtool"
#rrdtool.db-name = "/var/lib/lighttpd/lighttpd.rrd"
#### setenv