lightppd: Add dorestad1493 booking system.
[matthijs/servers/drsnuggles.git] / etc / lighttpd / vhosts / evolution-events-nl
1 $HTTP["host"] =~ "^(evolution-events.nl)$" {
2         url.redirect = (".*" => "http://www.%1/")
3 }
4
5 $HTTP["host"] =~ ".evolution-events.nl$" {
6         var.site-dir         = var.root-dir + "/evolution-events.nl"
7         var.site-fcgi-dir    = var.fcgi-dir + "/evolution-events-nl"
8
9         evhost.path-pattern  = var.site-dir + "/htdocs/%3/"
10
11         # Configure a simple plaintext password file
12         auth.backend                 = "plain"
13         auth.backend.plain.userfile  = var.site-dir + "/conf/simple.user"
14
15         
16         fastcgi.server += ( 
17                 ".php" => 
18                 ((
19                         "socket" => var.site-fcgi-dir + "/php",
20                         "broken-scriptfilename" => "enable",
21                 )),
22                 "/wipi" =>
23                 ((
24                         "socket" => var.site-fcgi-dir + "/wipi",
25                         "check-local" => "disable",
26                 )),
27         )
28         alias.url += (
29                 # Don't name this /wipistatic, since that will be caught by fastcgi above
30                 "/staticwipi" => var.site-dir + "/applications/wipi/static/",
31         )
32         
33         url.rewrite-once += (
34                 "^/wipi/static/(.*)$" => "/staticwipi/$1",
35                 "^/Site(/.*|\?.*|)$" => "/wipi/Site/$1",
36         )
37
38         $HTTP["host"] =~ "^orga.evolution-events.nl$" {
39
40                 auth.require    += ( "/private" => 
41                         ( 
42                                 "method"  => "digest",
43                                 "realm"   => "Evolution Events",
44                                 "require" => "user=admin"
45                         )
46                 )
47                 $HTTP["url"] =~ "^/private/" {
48                     # Enable dirlistings for /private
49                     server.dir-listing = "enable"
50                 }
51
52                 url.rewrite-once += (
53                         "^/forum/(.+)$" => "/forum/",
54                 )
55         }
56
57         $HTTP["host"] =~ "^hunter-net.evolution-events.nl$" {
58                 fastcgi.server  += ( 
59                         "/blaa" =>
60                         ((
61                                 "socket" => var.site-fcgi-dir + "/hunternet",
62                                 "check-local" => "disable",
63                         )),
64                 )
65
66                 alias.url += (
67                         "/media/" => "/usr/share/python-support/python-django/django/contrib/admin/media/",
68                         "/static/" => var.site-dir + "/applications/xerxes/media/",
69                 )
70
71                 url.rewrite-once += (
72 #                       "^(/.*)$" => "/",
73                         "^(/media.*)$" => "$1",
74                         "^(/static.*)$" => "$1",
75                         "^/favicon\.ico$" => "/media/favicon.ico",
76                         "^(/.*)$" => "/blaa$1",
77                 )
78         }
79         $HTTP["host"] =~ "^dorestad(1493)?.evolution-events.nl$" {
80                 fastcgi.server  += (
81                         "/reserveren" =>
82                         ((
83                                 "socket" => var.site-fcgi-dir + "/dorestad-bookings",
84                                 "check-local" => "disable",
85                         )),
86                 )
87
88                 alias.url += (
89                         "/admin/media/" => var.site-dir + "/applications/dorestad-bookings/python-virtualenv/lib/python2.5/site-packages/Django-1.2.3-py2.5.egg/django/contrib/admin/media/",
90                 )
91         }
92
93         $HTTP["host"] =~ "^xerxes.evolution-events.nl$" {
94                 fastcgi.server  += ( 
95                         "/blaa" =>
96                         ((
97                                 "socket" => var.site-fcgi-dir + "/xerxes",
98                                 "check-local" => "disable",
99                         )),
100                 )
101
102                 alias.url += (
103                         "/admin/media/" => "/usr/share/python-support/python-django/django/contrib/admin/media/",
104                         "/media/" => var.site-dir + "/applications/xerxes/media/",
105                 )
106
107                 url.rewrite-once += (
108                         "^(/media.*)$" => "$1",
109                         "^(/admin/media.*)$" => "$1",
110                         #"^/favicon\.ico$" => "/admin/media/favicon.ico",
111                         "^(/.*)$" => "/blaa$1",
112                 )
113         }
114         
115         # Redirect some deprecated urls.
116         $HTTP["host"] =~ "^lextalionis2.evolution-events.nl$" {
117                 url.redirect = ( "^(.*)$" => "http://lextalionis.evolution-events.nl$1" )
118         }
119         $HTTP["host"] =~ "^raganorck2.evolution-events.nl$" {
120                 url.redirect = ( "^(.*)$" => "http://raganorck.evolution-events.nl$1" )
121         }
122         $HTTP["host"] =~ "^exodus2.evolution-events.nl$" {
123                 url.redirect = ( "^(.*)$" => "http://exodus.evolution-events.nl$1" )
124         }
125         $HTTP["host"] =~ "^www2.evolution-events.nl$" {
126                 url.redirect = ( "^(.*)$" => "http://www.evolution-events.nl$1" )
127         }
128 }