3 # This config provides two kinds of configuration, for url based ("/eventum")
4 # and vhost based ("http://eventum.example.org").
6 # To use one of the configurations uncomment the other.
8 # To redirect all http requests to https server:
9 #$SERVER["socket"] == ":80" {
10 # $HTTP["host"] == "eventum.example.org" {
11 # server.name = "eventum.example.org"
12 # url.redirect = ( "^/(.*)" => "https://eventum.example.org/$1" )
16 # running as alias, part 1
18 "/eventum" => "/usr/share/eventum/htdocs",
21 # running as separate vhost, part 1
22 #$HTTP["host"] == "eventum.example.org" {
23 # server.document-root = "/usr/share/eventum/htdocs",
26 # running as alias, part 2
27 $HTTP["url"] =~ "^/eventum/" {
28 # running as separate vhost, part 2
29 #$HTTP["host"] == "eventum.example.org" {
31 # # Make whole eventum password protected
32 # auth.backend = "htpasswd"
33 # auth.backend.htpasswd.userfile = "/etc/webapps/eventum/htpasswd"
35 # # rss has it's own authorization
36 # $HTTP["url"] !~ "/rss\.php$" {
39 # "method" => "basic",
40 # "realm" => "Eventum",
41 # "require" => "valid-user"
46 # SCM integration. Set here IP of host running your VCS
47 $HTTP["remoteip"] != "127.0.0.1" {
48 $HTTP["url"] =~ "/scm_ping\.php$" {
49 url.access-deny = ( "" )
54 $HTTP["url"] =~ "/rpc/xmlrpc.php" {
55 $HTTP["remoteip"] !~ "127.0.0.1" {
56 url.access-deny = ( "" )