SOURCES: trac-lighttpd.conf - http auth support

glen glen at pld-linux.org
Thu Mar 27 11:59:37 CET 2008


Author: glen                         Date: Thu Mar 27 10:59:37 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- http auth support

---- Files affected:
SOURCES:
   trac-lighttpd.conf (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SOURCES/trac-lighttpd.conf
diff -u SOURCES/trac-lighttpd.conf:1.2 SOURCES/trac-lighttpd.conf:1.3
--- SOURCES/trac-lighttpd.conf:1.2	Tue Aug 22 17:30:05 2006
+++ SOURCES/trac-lighttpd.conf	Thu Mar 27 11:59:32 2008
@@ -9,6 +9,18 @@
 	"^/trac/[^/]+/chrome/common/(.*)" => "/trac/chrome/common/$1",
 )
 
+$HTTP["url"] =~ "^/trac/([^/]+/)?login" {
+	auth.backend = "htpasswd"
+	auth.backend.htpasswd.userfile = "/etc/webapps/trac/htpasswd"
+	auth.require = (
+		"/" => (
+			"method"  => "basic",
+			"realm"   => "trac",
+			"require" => "valid-user"
+		)
+	)
+}
+
 $HTTP["url"] =~ "^/trac/([^/]+/)?chrome/" {
 	# no fastcgi
 } else $HTTP["url"] =~ "^/trac" {
@@ -30,4 +42,5 @@
 		),
 	)
 }
+
 # vim:ts=4
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/trac-lighttpd.conf?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list