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