SOURCES: lighttpd.conf - merged with 1.4.7

glen glen at pld-linux.org
Tue Nov 15 15:15:53 CET 2005


Author: glen                         Date: Tue Nov 15 14:15:53 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- merged with 1.4.7

---- Files affected:
SOURCES:
   lighttpd.conf (1.22 -> 1.23) 

---- Diffs:

================================================================
Index: SOURCES/lighttpd.conf
diff -u SOURCES/lighttpd.conf:1.22 SOURCES/lighttpd.conf:1.23
--- SOURCES/lighttpd.conf:1.22	Tue Nov 15 15:06:18 2005
+++ SOURCES/lighttpd.conf	Tue Nov 15 15:15:47 2005
@@ -1,6 +1,6 @@
 # lighttpd configuration file
 #
-# use a it as base for lighttpd 1.0.0 and above
+# use a it as base for lighttpd 1.4 and above
 #
 # $Id$
 
@@ -17,6 +17,8 @@
 #	"mod_redirect",
 #	"mod_alias",
 	"mod_access",
+#	"mod_cml",
+#	"mod_trigger_b4_dl",
 #	"mod_auth",
 #	"mod_status",
 #	"mod_setenv",
@@ -51,6 +53,11 @@
 	"default.htm",
 )
 
+## 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"
+
 # mimetype mapping
 # include, relative to dirname of main config file
 include "mime.types.conf"
@@ -72,6 +79,16 @@
 #      of the document-root
 url.access-deny = ( "~", ".inc" )
 
+$HTTP["url"] =~ "\.pdf$" {
+	server.range-requests = "disable"
+}
+
+##
+# which extensions should not be handle via static-file transfer
+#
+# .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi
+static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
+
 ######### Options that are good to be but not neccesary to be changed #######
 
 ## bind to port (default: 80)
@@ -93,7 +110,8 @@
 ##   mod_simple_vhost
 ##
 ## document-root =
-##   virtual-server-root + virtual-server-default-host + virtual-server-docroot or
+##   virtual-server-root + virtual-server-default-host + virtual-server-docroot
+## or
 ##   virtual-server-root + http-host + virtual-server-docroot
 ##
 #simple-vhost.server-root         = "/home/weigon/wwwroot/servers/"
@@ -169,7 +187,7 @@
 #status.config-url = "/server-config"
 
 #### auth module
-## read authentification.txt for more info
+## read authentication.txt for more info
 ## debugging
 # 0 for off, 1 for 'auth-ok' messages, 2 for verbose debugging
 #auth.debug = 1
@@ -195,21 +213,15 @@
 #	"/server-status" => (
 #		"method"  => "digest",
 #		"realm"   => "download archiv",
-#		"require" => "user=agent007|user=agent008"
+#		"require" => "user=jan"
 #	),
 #	"/server-info" => (
 #		"method"  => "digest",
 #		"realm"   => "download archiv",
-#		"require" => "group=www|user=jan|host=192.168.2.10"
-#	),
-#	"/server-config" => (
-#		"method"  => "ldap",
-#		"realm"   => "server config",
-#		"require" => "user=glen"
-#	),
+#		"require" => "valid-user"
+#	)
 #)
 
-
 #### url handling modules (rewrite, redirect, access)
 #url.rewrite = (
 #	"^/$" => "/server-status",
@@ -217,6 +229,10 @@
 #url.redirect = (
 #	"^/wishlist/(.+)" => "http://www.123.org/$1",
 #)
+#### both rewrite/redirect support back reference to regex conditional using %n
+#$HTTP["host"] =~ "^www\.(.*)" {
+#	url.redirect = ( "^/(.*)" => "http://%1/$1" )
+#}
 
 # define a pattern for the host url finding
 # %% => % sign
@@ -244,6 +260,42 @@
 #### setenv
 #setenv.add-request-header = ( "TRAV_ENV" => "mysql://user@host/db" )
 #setenv.add-response-header = ( "X-Secret-Message" => "42" )
+
+## for mod_trigger_b4_dl
+# trigger-before-download.gdbm-filename = "/home/weigon/testbase/trigger.db"
+# trigger-before-download.memcache-hosts = ( "127.0.0.1:11211" )
+# trigger-before-download.trigger-url = "^/trigger/"
+# trigger-before-download.download-url = "^/download/"
+# trigger-before-download.deny-url = "http://127.0.0.1/index.html"
+# trigger-before-download.trigger-timeout = 10
+
+## for mod_cml
+## don't forget to add index.cml to server.indexfiles
+# cml.extension               = ".cml"
+# cml.memcache-hosts          = ( "127.0.0.1:11211" )
+
+#### variable usage:
+## variable name without "." is auto prefixed by "var." and becomes "var.bar"
+#bar = 1
+#var.mystring = "foo"
+
+## integer add
+#bar += 1
+## string concat, with integer cast as string, result: "www.foo1.com"
+#server.name = "www." + mystring + var.bar + ".com"
+## array merge
+#index-file.names = (foo + ".php") + index-file.names
+#index-file.names += (foo + ".php")
+
+#### include
+#include /etc/lighttpd/lighttpd-inc.conf
+## same as above if you run: "lighttpd -f /etc/lighttpd/lighttpd.conf"
+#include "lighttpd-inc.conf"
+
+#### include_shell
+#include_shell "echo var.a=1"
+## the above is same as:
+#var.a=1
 
 #### userdir module
 #userdir.path = "public_html"
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/lighttpd.conf?r1=1.22&r2=1.23&f=u




More information about the pld-cvs-commit mailing list