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 # HTTP Strict Transport Security (HSTS) headers on https addresses
16 #$SERVER["socket"] == ":443" {
17 # # HSTS (mod_setenv is required) (15768000 seconds = 6 months)
18 # setenv.add-response-header += ( "Strict-Transport-Security" => "max-age=15768000" )
21 # running as alias, part 1
23 "/eventum" => "/usr/share/eventum/htdocs",
26 # running as separate vhost, part 1
27 #$HTTP["host"] == "eventum.example.org" {
28 # server.document-root = "/usr/share/eventum/htdocs",
31 # running as alias, part 2
32 $HTTP["url"] =~ "^/eventum/" {
33 # running as separate vhost, part 2
34 #$HTTP["host"] == "eventum.example.org" {
36 # # Make whole eventum password protected
37 # auth.backend = "htpasswd"
38 # auth.backend.htpasswd.userfile = "/etc/webapps/eventum/htpasswd"
40 # # rss has it's own authorization
41 # $HTTP["url"] !~ "/rss\.php$" {
44 # "method" => "basic",
45 # "realm" => "Eventum",
46 # "require" => "valid-user"
51 # SCM integration. Set here IP of host running CVS, SVN, Git
52 $HTTP["remoteip"] != "127.0.0.1" {
53 $HTTP["url"] =~ "/scm_ping\.php$" {
54 url.access-deny = ( "" )
59 $HTTP["url"] =~ "/rpc/xmlrpc.php" {
60 $HTTP["remoteip"] !~ "127.0.0.1" {
61 url.access-deny = ( "" )