]> git.pld-linux.org Git - packages/eventum.git/blob - eventum-lighttpd.conf
up to 3.0.2-28-g0d12f69
[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 # running as alias, part 1
16 alias.url += (
17         "/eventum" => "/usr/share/eventum/htdocs",
18 )
19
20 # running as separate vhost, part 1
21 #$HTTP["host"] == "eventum.example.org" {
22 #    server.document-root = "/usr/share/eventum/htdocs",
23 #}
24
25 # running as alias, part 2
26 $HTTP["url"] =~ "^/eventum/" {
27 # running as separate vhost, part 2
28 #$HTTP["host"] == "eventum.example.org" {
29
30 #       # Make whole eventum password protected
31 #       auth.backend = "htpasswd"
32 #       auth.backend.htpasswd.userfile = "/etc/webapps/eventum/htpasswd"
33 #
34 #       # rss has it's own authorization
35 #       $HTTP["url"] !~ "/rss\.php$" {
36 #               auth.require += (
37 #                       "/" => (
38 #                               "method"  => "basic",
39 #                               "realm"   => "Eventum",
40 #                               "require" => "valid-user"
41 #                       )
42 #               )
43 #       }
44
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 = ( "" )
49                 }
50         }
51
52         # IP Restrict XMLRPC
53         $HTTP["url"] =~ "/rpc/xmlrpc.php" {
54                 $HTTP["remoteip"] !~ "127.0.0.1" {
55                         url.access-deny = ( "" )
56                 }
57         }
58 }
59
60 # vim:ts=4
This page took 0.024654 seconds and 3 git commands to generate.