SOURCES: lighttpd-mod_access.conf, lighttpd-mod_accesslog.conf, li...

glen glen at pld-linux.org
Tue Jul 11 22:17:42 CEST 2006


Author: glen                         Date: Tue Jul 11 20:17:42 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- split from main big config file

---- Files affected:
SOURCES:
   lighttpd-mod_access.conf (1.1 -> 1.2) , lighttpd-mod_accesslog.conf (1.1 -> 1.2) , lighttpd-mod_alias.conf (1.1 -> 1.2) , lighttpd-mod_auth.conf (1.1 -> 1.2) , lighttpd-mod_cgi.conf (1.1 -> 1.2) , lighttpd-mod_cml.conf (1.1 -> 1.2) , lighttpd-mod_dirlisting.conf (1.1 -> 1.2) , lighttpd-mod_evasive.conf (1.1 -> 1.2) , lighttpd-mod_evhost.conf (1.1 -> 1.2) , lighttpd-mod_expire.conf (1.1 -> 1.2) , lighttpd-mod_fastcgi.conf (1.1 -> 1.2) , lighttpd-mod_indexfile.conf (1.1 -> 1.2) , lighttpd-mod_proxy.conf (1.1 -> 1.2) , lighttpd-mod_redirect.conf (1.1 -> 1.2) , lighttpd-mod_rewrite.conf (1.1 -> 1.2) , lighttpd-mod_rrdtool.conf (1.1 -> 1.2) , lighttpd-mod_setenv.conf (1.1 -> 1.2) , lighttpd-mod_simple_vhost.conf (1.1 -> 1.2) , lighttpd-mod_ssi.conf (1.1 -> 1.2) , lighttpd-mod_staticfile.conf (1.1 -> 1.2) , lighttpd-mod_status.conf (1.1 -> 1.2) , lighttpd-mod_trigger_b4_dl.conf (1.1 -> 1.2) , lighttpd-mod_userdir.conf (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/lighttpd-mod_access.conf
diff -u SOURCES/lighttpd-mod_access.conf:1.1 SOURCES/lighttpd-mod_access.conf:1.2
--- SOURCES/lighttpd-mod_access.conf:1.1	Tue Jul 11 21:47:32 2006
+++ SOURCES/lighttpd-mod_access.conf	Tue Jul 11 22:17:36 2006
@@ -1,3 +1,11 @@
 server.modules += (
 	"mod_access"
 )
+
+## deny access the file-extensions
+#
+# ~    is for backupfiles from vi, emacs, joe, ...
+# .inc is often used for code includes which should in general not be part
+#      of the document-root
+url.access-deny = ( "~", ".inc" )
+

================================================================
Index: SOURCES/lighttpd-mod_accesslog.conf
diff -u SOURCES/lighttpd-mod_accesslog.conf:1.1 SOURCES/lighttpd-mod_accesslog.conf:1.2
--- SOURCES/lighttpd-mod_accesslog.conf:1.1	Tue Jul 11 21:47:32 2006
+++ SOURCES/lighttpd-mod_accesslog.conf	Tue Jul 11 22:17:36 2006
@@ -1,3 +1,7 @@
+#### accesslog module
+
 server.modules += (
 	"mod_accesslog"
 )
+
+accesslog.filename = "/var/log/lighttpd/access.log"

================================================================
Index: SOURCES/lighttpd-mod_alias.conf
diff -u SOURCES/lighttpd-mod_alias.conf:1.1 SOURCES/lighttpd-mod_alias.conf:1.2
--- SOURCES/lighttpd-mod_alias.conf:1.1	Tue Jul 11 21:47:32 2006
+++ SOURCES/lighttpd-mod_alias.conf	Tue Jul 11 22:17:36 2006
@@ -1,3 +1,8 @@
 server.modules += (
 	"mod_alias"
 )
+
+#### alias module
+#alias.url = (
+#	"/cgi-bin/" => "/usr/lib/cgi-bin",
+#)

================================================================
Index: SOURCES/lighttpd-mod_auth.conf
diff -u SOURCES/lighttpd-mod_auth.conf:1.1 SOURCES/lighttpd-mod_auth.conf:1.2
--- SOURCES/lighttpd-mod_auth.conf:1.1	Tue Jul 11 21:47:32 2006
+++ SOURCES/lighttpd-mod_auth.conf	Tue Jul 11 22:17:36 2006
@@ -1,3 +1,40 @@
 server.modules += (
 	"mod_auth"
 )
+
+#### auth module
+## read authentication.txt for more info
+## debugging
+# 0 for off, 1 for 'auth-ok' messages, 2 for verbose debugging
+#auth.debug = 1
+## type of backend
+# plain, htpasswd, ldap or htdigest
+#auth.backend = "plain"
+# filename of the password storage
+## for plain
+#auth.backend.plain.userfile = "/etc/lighttpd/lighttpd.user"
+#auth.backend.plain.groupfile = "/etc/lighttpd/lighttpd.group"
+## for htpasswd
+#auth.backend.htpasswd.userfile = "/etc/lighttpd/lighttpd-htpasswd.user"
+## for htdigest
+#auth.backend.htdigest.userfile = "/etc/lighttpd/lighttpd-htdigest.user"
+## for ldap
+# the $ in auth.backend.ldap.filter is replaced by the
+# 'username' from the login dialog
+#auth.backend.ldap.hostname = "localhost"
+#auth.backend.ldap.base-dn  = "dc=my-domain,dc=com"
+#auth.backend.ldap.filter   = "(uid=$)"
+
+#auth.require = (
+#	"/server-status" => (
+#		"method"  => "digest",
+#		"realm"   => "download archiv",
+#		"require" => "user=jan"
+#	),
+#	"/server-info" => (
+#		"method"  => "digest",
+#		"realm"   => "download archiv",
+#		"require" => "valid-user"
+#	)
+#)
+

================================================================
Index: SOURCES/lighttpd-mod_cgi.conf
diff -u SOURCES/lighttpd-mod_cgi.conf:1.1 SOURCES/lighttpd-mod_cgi.conf:1.2
--- SOURCES/lighttpd-mod_cgi.conf:1.1	Tue Jul 11 21:47:32 2006
+++ SOURCES/lighttpd-mod_cgi.conf	Tue Jul 11 22:17:36 2006
@@ -1,3 +1,10 @@
 server.modules += (
 	"mod_cgi"
 )
+
+#### CGI module
+#cgi.assign = (
+#	".pl"  => "/usr/bin/perl",
+#	".cgi" => "/usr/bin/perl",
+#)
+

================================================================
Index: SOURCES/lighttpd-mod_cml.conf
diff -u SOURCES/lighttpd-mod_cml.conf:1.1 SOURCES/lighttpd-mod_cml.conf:1.2
--- SOURCES/lighttpd-mod_cml.conf:1.1	Tue Jul 11 21:47:32 2006
+++ SOURCES/lighttpd-mod_cml.conf	Tue Jul 11 22:17:36 2006
@@ -1,3 +1,9 @@
 server.modules += (
 	"mod_cml"
 )
+
+## for mod_cml
+## don't forget to add index.cml to server.indexfiles
+# cml.extension               = ".cml"
+# cml.memcache-hosts          = ( "127.0.0.1:11211" )
+

================================================================
Index: SOURCES/lighttpd-mod_dirlisting.conf
diff -u SOURCES/lighttpd-mod_dirlisting.conf:1.1 SOURCES/lighttpd-mod_dirlisting.conf:1.2
--- SOURCES/lighttpd-mod_dirlisting.conf:1.1	Tue Jul 11 21:47:32 2006
+++ SOURCES/lighttpd-mod_dirlisting.conf	Tue Jul 11 22:17:36 2006
@@ -1,3 +1,6 @@
 server.modules += (
 	"mod_dirlisting"
 )
+
+## virtual directory listings
+#server.dir-listing          = "enable"

================================================================
Index: SOURCES/lighttpd-mod_evasive.conf
diff -u SOURCES/lighttpd-mod_evasive.conf:1.1 SOURCES/lighttpd-mod_evasive.conf:1.2
--- SOURCES/lighttpd-mod_evasive.conf:1.1	Tue Jul 11 21:47:32 2006
+++ SOURCES/lighttpd-mod_evasive.conf	Tue Jul 11 22:17:36 2006
@@ -1,3 +1,10 @@
 server.modules += (
 	"mod_evasive"
 )
+
+#### evasive module
+##
+## Limits number of connections per IP
+##
+#evasive.max-conns-per-ip = 5
+

================================================================
Index: SOURCES/lighttpd-mod_evhost.conf
diff -u SOURCES/lighttpd-mod_evhost.conf:1.1 SOURCES/lighttpd-mod_evhost.conf:1.2
--- SOURCES/lighttpd-mod_evhost.conf:1.1	Tue Jul 11 21:47:32 2006
+++ SOURCES/lighttpd-mod_evhost.conf	Tue Jul 11 22:17:36 2006
@@ -1,3 +1,14 @@
 server.modules += (
 	"mod_evhost"
 )
+
+# define a pattern for the host url finding
+# %% => % sign
+# %0 => domain name + tld
+# %1 => tld
+# %2 => domain name without tld
+# %3 => subdomain 1 name
+# %4 => subdomain 2 name
+#
+#evhost.path-pattern = "/home/storage/dev/www/%3/htdocs/"
+

================================================================
Index: SOURCES/lighttpd-mod_expire.conf
diff -u SOURCES/lighttpd-mod_expire.conf:1.1 SOURCES/lighttpd-mod_expire.conf:1.2
--- SOURCES/lighttpd-mod_expire.conf:1.1	Tue Jul 11 21:47:32 2006
+++ SOURCES/lighttpd-mod_expire.conf	Tue Jul 11 22:17:36 2006
@@ -1,3 +1,10 @@
 server.modules += (
 	"mod_expire"
 )
+
+
+#### expire module
+#expire.url = (
+#	"/buggy/" => "access 2 hours",
+#	"/asdhas/" => "access plus 1 seconds 2 minutes",
+#)

================================================================
Index: SOURCES/lighttpd-mod_fastcgi.conf
diff -u SOURCES/lighttpd-mod_fastcgi.conf:1.1 SOURCES/lighttpd-mod_fastcgi.conf:1.2
--- SOURCES/lighttpd-mod_fastcgi.conf:1.1	Tue Jul 11 21:47:32 2006
+++ SOURCES/lighttpd-mod_fastcgi.conf	Tue Jul 11 22:17:36 2006
@@ -1,3 +1,28 @@
 server.modules += (
 	"mod_fastcgi"
 )
+
+#### fastcgi module
+## read fastcgi.txt for more info
+#fastcgi.debug = 1
+#fastcgi.server = (
+#	".php" => (
+#		"localhost" => (
+#			"socket" => "/var/run/php/php-fastcgi.sock",
+#			"bin-path" => "/usr/bin/php.fcgi",
+#		)
+#	)
+#)
+
+#### standalone of php-fcgi
+# if you want to use standalone version of php.fcgi
+# install php-fcgi-init , start php-fcgi and then start lighttpd
+#
+#fastcgi.server = (
+#	".php" => (
+#		( "host" => "127.0.0.1",
+#		  "port" => 1026,
+#  		)
+#	)
+#)
+

================================================================
Index: SOURCES/lighttpd-mod_indexfile.conf
diff -u SOURCES/lighttpd-mod_indexfile.conf:1.1 SOURCES/lighttpd-mod_indexfile.conf:1.2
--- SOURCES/lighttpd-mod_indexfile.conf:1.1	Tue Jul 11 21:47:32 2006
+++ SOURCES/lighttpd-mod_indexfile.conf	Tue Jul 11 22:17:36 2006
@@ -1,3 +1,12 @@
 server.modules += (
 	"mod_indexfile"
 )
+
+
+# files to check for if .../ is requested
+server.indexfiles = (
+	"index.php",
+	"index.html",
+	"index.htm",
+	"default.htm",
+)

================================================================
Index: SOURCES/lighttpd-mod_proxy.conf
diff -u SOURCES/lighttpd-mod_proxy.conf:1.1 SOURCES/lighttpd-mod_proxy.conf:1.2
--- SOURCES/lighttpd-mod_proxy.conf:1.1	Tue Jul 11 21:47:32 2006
+++ SOURCES/lighttpd-mod_proxy.conf	Tue Jul 11 22:17:36 2006
@@ -1,3 +1,15 @@
 server.modules += (
 	"mod_proxy"
 )
+
+#### proxy module
+## read proxy.txt for more info
+#proxy.server = (
+#	".php" => (
+#		"localhost" => (
+#			"host" => "192.168.0.101",
+#			"port" => 80,
+#		)
+#	)
+#)
+

================================================================
Index: SOURCES/lighttpd-mod_redirect.conf
diff -u SOURCES/lighttpd-mod_redirect.conf:1.1 SOURCES/lighttpd-mod_redirect.conf:1.2
--- SOURCES/lighttpd-mod_redirect.conf:1.1	Tue Jul 11 21:47:32 2006
+++ SOURCES/lighttpd-mod_redirect.conf	Tue Jul 11 22:17:36 2006
@@ -1,3 +1,12 @@
 server.modules += (
 	"mod_redirect"
 )
+
+#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" )
+#}
+

================================================================
Index: SOURCES/lighttpd-mod_rewrite.conf
diff -u SOURCES/lighttpd-mod_rewrite.conf:1.1 SOURCES/lighttpd-mod_rewrite.conf:1.2
--- SOURCES/lighttpd-mod_rewrite.conf:1.1	Tue Jul 11 21:47:32 2006
+++ SOURCES/lighttpd-mod_rewrite.conf	Tue Jul 11 22:17:36 2006
@@ -1,3 +1,8 @@
 server.modules += (
 	"mod_rewrite"
 )
+
+#### url handling modules (rewrite, redirect, access)
+#url.rewrite = (
+#	"^/$" => "/server-status",
+#)

================================================================
Index: SOURCES/lighttpd-mod_rrdtool.conf
diff -u SOURCES/lighttpd-mod_rrdtool.conf:1.1 SOURCES/lighttpd-mod_rrdtool.conf:1.2
--- SOURCES/lighttpd-mod_rrdtool.conf:1.1	Tue Jul 11 21:47:32 2006
+++ SOURCES/lighttpd-mod_rrdtool.conf	Tue Jul 11 22:17:36 2006
@@ -1,3 +1,8 @@
 server.modules += (
 	"mod_rrdtool"
 )
+
+#### rrdtool
+rrdtool.binary = "/usr/bin/rrdtool"
+#rrdtool.db-name = "/var/www/lighttpd.rrd"
+

================================================================
Index: SOURCES/lighttpd-mod_setenv.conf
diff -u SOURCES/lighttpd-mod_setenv.conf:1.1 SOURCES/lighttpd-mod_setenv.conf:1.2
--- SOURCES/lighttpd-mod_setenv.conf:1.1	Tue Jul 11 21:47:32 2006
+++ SOURCES/lighttpd-mod_setenv.conf	Tue Jul 11 22:17:36 2006
@@ -1,3 +1,7 @@
 server.modules += (
 	"mod_setenv"
 )
+
+#### setenv
+#setenv.add-request-header = ( "TRAV_ENV" => "mysql://user@host/db" )
+#setenv.add-response-header = ( "X-Secret-Message" => "42" )

================================================================
Index: SOURCES/lighttpd-mod_simple_vhost.conf
diff -u SOURCES/lighttpd-mod_simple_vhost.conf:1.1 SOURCES/lighttpd-mod_simple_vhost.conf:1.2
--- SOURCES/lighttpd-mod_simple_vhost.conf:1.1	Tue Jul 11 21:47:32 2006
+++ SOURCES/lighttpd-mod_simple_vhost.conf	Tue Jul 11 22:17:36 2006
@@ -1,3 +1,18 @@
 server.modules += (
 	"mod_simple_vhost"
 )
+
+###### virtual hosts
+##
+##   If you want name-based virtual hosting add the next three settings and load
+##   mod_simple_vhost
+##
+## document-root =
+##   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/"
+#simple-vhost.default-host        = "grisu.home.kneschke.de"
+#simple-vhost.document-root       = "/pages/"
+

================================================================
Index: SOURCES/lighttpd-mod_ssi.conf
diff -u SOURCES/lighttpd-mod_ssi.conf:1.1 SOURCES/lighttpd-mod_ssi.conf:1.2
--- SOURCES/lighttpd-mod_ssi.conf:1.1	Tue Jul 11 21:47:32 2006
+++ SOURCES/lighttpd-mod_ssi.conf	Tue Jul 11 22:17:36 2006
@@ -1,3 +1,7 @@
 server.modules += (
 	"mod_ssi"
 )
+
+#### ssi
+#ssi.extension = ( ".shtml" )
+

================================================================
Index: SOURCES/lighttpd-mod_staticfile.conf
diff -u SOURCES/lighttpd-mod_staticfile.conf:1.1 SOURCES/lighttpd-mod_staticfile.conf:1.2
--- SOURCES/lighttpd-mod_staticfile.conf:1.1	Tue Jul 11 21:47:32 2006
+++ SOURCES/lighttpd-mod_staticfile.conf	Tue Jul 11 22:17:36 2006
@@ -1,3 +1,10 @@
 server.modules += (
 	"mod_staticfile"
 )
+
+##
+# 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" )
+

================================================================
Index: SOURCES/lighttpd-mod_status.conf
diff -u SOURCES/lighttpd-mod_status.conf:1.1 SOURCES/lighttpd-mod_status.conf:1.2
--- SOURCES/lighttpd-mod_status.conf:1.1	Tue Jul 11 21:47:32 2006
+++ SOURCES/lighttpd-mod_status.conf	Tue Jul 11 22:17:36 2006
@@ -1,3 +1,8 @@
 server.modules += (
 	"mod_status"
 )
+
+#### status module
+status.status-url = "/server-status"
+status.config-url = "/server-config"
+status.statistics-url = "/server-stats"

================================================================
Index: SOURCES/lighttpd-mod_trigger_b4_dl.conf
diff -u SOURCES/lighttpd-mod_trigger_b4_dl.conf:1.1 SOURCES/lighttpd-mod_trigger_b4_dl.conf:1.2
--- SOURCES/lighttpd-mod_trigger_b4_dl.conf:1.1	Tue Jul 11 21:47:32 2006
+++ SOURCES/lighttpd-mod_trigger_b4_dl.conf	Tue Jul 11 22:17:36 2006
@@ -1,3 +1,12 @@
 server.modules += (
 	"mod_trigger_b4_dl"
 )
+
+## 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
+

================================================================
Index: SOURCES/lighttpd-mod_userdir.conf
diff -u SOURCES/lighttpd-mod_userdir.conf:1.1 SOURCES/lighttpd-mod_userdir.conf:1.2
--- SOURCES/lighttpd-mod_userdir.conf:1.1	Tue Jul 11 21:47:32 2006
+++ SOURCES/lighttpd-mod_userdir.conf	Tue Jul 11 22:17:36 2006
@@ -1,3 +1,10 @@
 server.modules += (
 	"mod_userdir"
 )
+
+#### userdir module
+#userdir.path = "public_html"
+#userdir.exclude-user = ( "root", "postmaster" )
+#
+## if set, only users from this list may use the feature
+#userdir.include-user = ""
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/lighttpd-mod_access.conf?r1=1.1&r2=1.2&f=u
    http://cvs.pld-linux.org/SOURCES/lighttpd-mod_accesslog.conf?r1=1.1&r2=1.2&f=u
    http://cvs.pld-linux.org/SOURCES/lighttpd-mod_alias.conf?r1=1.1&r2=1.2&f=u
    http://cvs.pld-linux.org/SOURCES/lighttpd-mod_auth.conf?r1=1.1&r2=1.2&f=u
    http://cvs.pld-linux.org/SOURCES/lighttpd-mod_cgi.conf?r1=1.1&r2=1.2&f=u
    http://cvs.pld-linux.org/SOURCES/lighttpd-mod_cml.conf?r1=1.1&r2=1.2&f=u
    http://cvs.pld-linux.org/SOURCES/lighttpd-mod_dirlisting.conf?r1=1.1&r2=1.2&f=u
    http://cvs.pld-linux.org/SOURCES/lighttpd-mod_evasive.conf?r1=1.1&r2=1.2&f=u
    http://cvs.pld-linux.org/SOURCES/lighttpd-mod_evhost.conf?r1=1.1&r2=1.2&f=u
    http://cvs.pld-linux.org/SOURCES/lighttpd-mod_expire.conf?r1=1.1&r2=1.2&f=u
    http://cvs.pld-linux.org/SOURCES/lighttpd-mod_fastcgi.conf?r1=1.1&r2=1.2&f=u
    http://cvs.pld-linux.org/SOURCES/lighttpd-mod_indexfile.conf?r1=1.1&r2=1.2&f=u
    http://cvs.pld-linux.org/SOURCES/lighttpd-mod_proxy.conf?r1=1.1&r2=1.2&f=u
    http://cvs.pld-linux.org/SOURCES/lighttpd-mod_redirect.conf?r1=1.1&r2=1.2&f=u
    http://cvs.pld-linux.org/SOURCES/lighttpd-mod_rewrite.conf?r1=1.1&r2=1.2&f=u
    http://cvs.pld-linux.org/SOURCES/lighttpd-mod_rrdtool.conf?r1=1.1&r2=1.2&f=u
    http://cvs.pld-linux.org/SOURCES/lighttpd-mod_setenv.conf?r1=1.1&r2=1.2&f=u
    http://cvs.pld-linux.org/SOURCES/lighttpd-mod_simple_vhost.conf?r1=1.1&r2=1.2&f=u
    http://cvs.pld-linux.org/SOURCES/lighttpd-mod_ssi.conf?r1=1.1&r2=1.2&f=u
    http://cvs.pld-linux.org/SOURCES/lighttpd-mod_staticfile.conf?r1=1.1&r2=1.2&f=u
    http://cvs.pld-linux.org/SOURCES/lighttpd-mod_status.conf?r1=1.1&r2=1.2&f=u
    http://cvs.pld-linux.org/SOURCES/lighttpd-mod_trigger_b4_dl.conf?r1=1.1&r2=1.2&f=u
    http://cvs.pld-linux.org/SOURCES/lighttpd-mod_userdir.conf?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list