+
+# running as alias, part 2
+$HTTP["url"] =~ "^/eventum/" {
+# running as separate vhost, part 2
+#$HTTP["host"] == "eventum.example.org" {
+
+# # 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"
+# )
+# )
+# }
+
+ # SCM integration. Set here IP of host running CVS, SVN, Git
+ $HTTP["remoteip"] != "127.0.0.1" {
+ $HTTP["url"] =~ "/scm_ping\.php$" {
+ url.access-deny = ( "" )
+ }
+ }
+
+ # IP Restrict XMLRPC
+ $HTTP["url"] =~ "/rpc/xmlrpc.php" {
+ $HTTP["remoteip"] !~ "127.0.0.1" {
+ url.access-deny = ( "" )
+ }
+ }
+}
+
+# vim:ts=4