lighttpd/evolution-events.nl: Fix Xerxes configuration.
[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                 
48
49                 url.rewrite-once += (
50                         "^/forum/(.+)$" => "/forum/",
51                 )
52         }
53
54         $HTTP["host"] =~ "^hunter-net.evolution-events.nl$" {
55                 fastcgi.server  += ( 
56                         "/blaa" =>
57                         ((
58                                 "socket" => var.site-fcgi-dir + "/hunternet",
59                                 "check-local" => "disable",
60                         )),
61                 )
62
63                 alias.url += (
64                         "/media/" => "/usr/share/python-support/python-django/django/contrib/admin/media/",
65                         "/static/" => var.site-dir + "/applications/xerxes/media/",
66                 )
67
68                 url.rewrite-once += (
69 #                       "^(/.*)$" => "/",
70                         "^(/media.*)$" => "$1",
71                         "^(/static.*)$" => "$1",
72                         "^/favicon\.ico$" => "/media/favicon.ico",
73                         "^(/.*)$" => "/blaa$1",
74                 )
75         }
76
77         $HTTP["host"] =~ "^xerxes.evolution-events.nl$" {
78                 fastcgi.server  += ( 
79                         "/blaa" =>
80                         ((
81                                 "socket" => var.site-fcgi-dir + "/xerxes",
82                                 "check-local" => "disable",
83                         )),
84                 )
85
86                 alias.url += (
87                         "/admin/media/" => "/usr/share/python-support/python-django/django/contrib/admin/media/",
88                         "/media/" => var.site-dir + "/applications/xerxes/media/",
89                 )
90
91                 url.rewrite-once += (
92                         "^(/media.*)$" => "$1",
93                         "^(/admin/media.*)$" => "$1",
94                         #"^/favicon\.ico$" => "/admin/media/favicon.ico",
95                         "^(/.*)$" => "/blaa$1",
96                 )
97         }
98         
99         # Redirect some deprecated urls.
100         $HTTP["host"] =~ "^lextalionis2.evolution-events.nl$" {
101                 url.redirect = ( "^(.*)$" => "http://lextalionis.evolution-events.nl$1" )
102         }
103         $HTTP["host"] =~ "^raganorck2.evolution-events.nl$" {
104                 url.redirect = ( "^(.*)$" => "http://raganorck.evolution-events.nl$1" )
105         }
106         $HTTP["host"] =~ "^exodus2.evolution-events.nl$" {
107                 url.redirect = ( "^(.*)$" => "http://exodus.evolution-events.nl$1" )
108         }
109         $HTTP["host"] =~ "^www2.evolution-events.nl$" {
110                 url.redirect = ( "^(.*)$" => "http://www.evolution-events.nl$1" )
111         }
112 }