]> git.pld-linux.org Git - packages/eventum.git/blobdiff - eventum-lighttpd.conf
up to 3.0.3-1.287.ge48a790, uses var constant internally
[packages/eventum.git] / eventum-lighttpd.conf
index ed8fd55a5908cd88246563ae2c1967aea354a47c..7ca717c21c069a475069fe3749ac2f42f89939af 100644 (file)
@@ -1,24 +1,31 @@
-# $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.
 
+# To redirect all http requests to https server:
+#$SERVER["socket"] == ":80" {
+#      $HTTP["host"] == "eventum.example.org" {
+#              server.name = "eventum.example.org"
+#              url.redirect = ( "^/(.*)" => "https://eventum.example.org/$1" )
+#      }
+#}
+
 # running as alias, part 1
 alias.url += (
        "/eventum" => "/usr/share/eventum/htdocs",
 )
 
 # running as separate vhost, part 1
-#$HTTP["host"] == "eventum.delfi.lan" {
+#$HTTP["host"] == "eventum.example.org" {
 #    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" {
+#$HTTP["host"] == "eventum.example.org" {
 
 #      # Make whole eventum password protected
 #      auth.backend = "htpasswd"
@@ -35,12 +42,19 @@ $HTTP["url"] =~ "^/eventum/" {
 #              )
 #      }
 
-       # SCM integration. Set here IP of host running CVS
+       # 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
This page took 0.115172 seconds and 4 git commands to generate.