a24a31ce7c7443937b51fc16ccda7a8c976dd6ca
[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
80         $HTTP["host"] =~ "^xerxes.evolution-events.nl$" {
81                 fastcgi.server  += ( 
82                         "/blaa" =>
83                         ((
84                                 "socket" => var.site-fcgi-dir + "/xerxes",
85                                 "check-local" => "disable",
86                         )),
87                 )
88
89                 alias.url += (
90                         "/admin/media/" => "/usr/share/python-support/python-django/django/contrib/admin/media/",
91                         "/media/" => var.site-dir + "/applications/xerxes/media/",
92                 )
93
94                 url.rewrite-once += (
95                         "^(/media.*)$" => "$1",
96                         "^(/admin/media.*)$" => "$1",
97                         #"^/favicon\.ico$" => "/admin/media/favicon.ico",
98                         "^(/.*)$" => "/blaa$1",
99                 )
100         }
101         
102         # Redirect some deprecated urls.
103         $HTTP["host"] =~ "^lextalionis2.evolution-events.nl$" {
104                 url.redirect = ( "^(.*)$" => "http://lextalionis.evolution-events.nl$1" )
105         }
106         $HTTP["host"] =~ "^raganorck2.evolution-events.nl$" {
107                 url.redirect = ( "^(.*)$" => "http://raganorck.evolution-events.nl$1" )
108         }
109         $HTTP["host"] =~ "^exodus2.evolution-events.nl$" {
110                 url.redirect = ( "^(.*)$" => "http://exodus.evolution-events.nl$1" )
111         }
112         $HTTP["host"] =~ "^www2.evolution-events.nl$" {
113                 url.redirect = ( "^(.*)$" => "http://www.evolution-events.nl$1" )
114         }
115 }