SOURCES: eventum-lighttpd.conf - more advanced configuration, almo...
glen
glen at pld-linux.org
Mon Jul 24 19:15:23 CEST 2006
Author: glen Date: Mon Jul 24 17:15:23 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- more advanced configuration, almost same as apache one
---- Files affected:
SOURCES:
eventum-lighttpd.conf (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SOURCES/eventum-lighttpd.conf
diff -u SOURCES/eventum-lighttpd.conf:1.1 SOURCES/eventum-lighttpd.conf:1.2
--- SOURCES/eventum-lighttpd.conf:1.1 Mon Jul 24 18:43:32 2006
+++ SOURCES/eventum-lighttpd.conf Mon Jul 24 19:15:18 2006
@@ -1,11 +1,49 @@
# $Id$
+#
+# This config provides two kinds of configuration, for url based ("/eventum")
+# and vhost based ("http://eventum.example.org").
+#
+# To use one of the configurations uncomment the other.
-# running as alias
-alias.url += (
- "/eventum" => "/usr/share/eventum/htdocs",
-)
-
-# running as separate vhost
-#$HTTP["host"] == "eventum.delfi.lan" {
-# server.document-root = "/usr/share/eventum/htdocs",
+# running as alias, part 1
+#alias.url += (
+# "/eventum" => "/usr/share/eventum/htdocs",
+#)
#}
+
+# running as separate vhost, part 1
+$HTTP["host"] == "eventum.delfi.lan" {
+ server.document-root = "/usr/share/eventum/htdocs",
+}
+
+# running as alias, part 2
+#$HTTP["url"] =~ "/eventum/" {
+# running as separate vhost, part 2
+$HTTP["host"] == "eventum.delfi.lan" {
+
+ # Make whole eventum password protected
+ auth.backend = "htpasswd"
+ auth.backend.htpasswd.userfile = "/etc/webapps/eventum/htpasswd"
+
+ # rss has it's own authorization
+ $HTTP["url"] !~ "/rss\.php$" {
+ auth.require += (
+ "/" => (
+ "method" => "basic",
+ "realm" => "Eventum",
+ "require" => "valid-user"
+ )
+ )
+ }
+
+ # for SCM integration
+ # Set here IP of host running CVS
+ $HTTP["remoteip"] != "127.0.0.1" {
+ $HTTP["url"] =~ "/scm_ping\.php$" {
+ url.access-deny = ( "" )
+ }
+ }
+
+}
+
+# vim:ts=4
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/eventum-lighttpd.conf?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list