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