bundle symfony-ldap
[packages/eventum.git] / eventum-lighttpd.conf
1 #
2 # This config provides two kinds of configuration, for url based ("/eventum")
3 # and vhost based ("http://eventum.example.org").
4 #
5 # To use one of the configurations uncomment the other.
6
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" )
12 #       }
13 #}
14
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" )
19 #}
20
21 # running as alias, part 1
22 alias.url += (
23         "/eventum" => "/usr/share/eventum/htdocs",
24 )
25
26 # running as separate vhost, part 1
27 #$HTTP["host"] == "eventum.example.org" {
28 #       server.document-root = "/usr/share/eventum/htdocs",
29 #}
30
31 # running as alias, part 2
32 $HTTP["url"] =~ "^/eventum/" {
33 # running as separate vhost, part 2
34 #$HTTP["host"] == "eventum.example.org" {
35
36 #       # Make whole eventum password protected
37 #       auth.backend = "htpasswd"
38 #       auth.backend.htpasswd.userfile = "/etc/webapps/eventum/htpasswd"
39 #
40 #       # rss has it's own authorization
41 #       $HTTP["url"] !~ "/rss\.php$" {
42 #               auth.require += (
43 #                       "/" => (
44 #                               "method"  => "basic",
45 #                               "realm"   => "Eventum",
46 #                               "require" => "valid-user"
47 #                       )
48 #               )
49 #       }
50
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 = ( "" )
55                 }
56         }
57
58         # IP Restrict XMLRPC
59         $HTTP["url"] =~ "/rpc/xmlrpc.php" {
60                 $HTTP["remoteip"] !~ "127.0.0.1" {
61                         url.access-deny = ( "" )
62                 }
63         }
64 }
65
66 # vim:ts=4
This page took 0.039108 seconds and 3 git commands to generate.