Tweak url.access-deny
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 12 Sep 2010 18:31:10 +0000 (14:31 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 12 Sep 2010 18:37:00 +0000 (14:37 -0400)
still disallow /config/ access, but make exception for /admin/config/

Thanks to eisd in #regex for helping with the syntax here.

horde/docs/lighttpd-horde.conf

index bc999df..386716b 100644 (file)
@@ -18,6 +18,6 @@ url.rewrite-once += (
         "^/horde/incubator/content/(.*)$" => "/horde/incubator/content/index.php"
 )
 
-$HTTP["url"] =~ "(/templates/|/scripts/|/lib/|/po/|/locale/)" {
+$HTTP["url"] =~ "(/templates/|/scripts/|/lib/|/po/|/locale/|(?<!admin)\/config\/?)" {
     url.access-deny = ("")
 }