9384245ca28a9f73ca660c18e1a9cd8d752197e5
[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         fastcgi.server += ( 
12                 ".php" => 
13                 ((
14                         "socket" => var.site-fcgi-dir + "/php",
15                         "broken-scriptfilename" => "enable",
16                 )),
17                 "/wipi" =>
18                 ((
19                         "socket" => var.site-fcgi-dir + "/wipi",
20                         "check-local" => "disable",
21                 )),
22         )
23         alias.url += (
24                 # Don't name this /wipistatic, since that will be caught by fastcgi above
25                 "/staticwipi" => var.site-dir + "/applications/wipi/static/",
26         )
27         
28         url.rewrite-once += (
29                 "^/wipi/static/(.*)$" => "/staticwipi/$1",
30                 "^/Site(/.*|\?.*|)$" => "/wipi/Site/$1",
31         )
32
33         $HTTP["host"] =~ "^orga.evolution-events.nl$" {
34                 auth.backend                 = "plain"
35                 auth.backend.plain.userfile  = var.site-dir + "/conf/simple.user"
36
37                 auth.require    += ( "/private" => 
38                         ( 
39                                 "method"  => "digest",
40                                 "realm"   => "Evolution Events",
41                                 "require" => "user=admin"
42                         )
43                 )
44                 
45
46                 url.rewrite-once += (
47                         "^/forum/(.+)$" => "/forum/",
48                 )
49         }
50
51         $HTTP["host"] =~ "^hunter-net.evolution-events.nl$" {
52                 fastcgi.server  += ( 
53                         "/blaa" =>
54                         ((
55                                 "socket" => var.site-fcgi-dir + "/hunternet",
56                                 "check-local" => "disable",
57                         )),
58                 )
59
60                 alias.url += (
61                         "/media/" => "/usr/share/python-support/python-django/django/contrib/admin/media/",
62                         "/static/" => var.site-dir + "/applications/xerxes/media/",
63                 )
64
65                 url.rewrite-once += (
66 #                       "^(/.*)$" => "/",
67                         "^(/media.*)$" => "$1",
68                         "^(/static.*)$" => "$1",
69                         "^/favicon\.ico$" => "/media/favicon.ico",
70                         "^(/.*)$" => "/blaa$1",
71                 )
72         }
73
74         $HTTP["host"] =~ "^xerxes.evolution-events.nl$" {
75                 fastcgi.server  += ( 
76                         "/blaa" =>
77                         ((
78                                 "socket" => var.site-fcgi-dir + "/xerxes",
79                                 "check-local" => "disable",
80                         )),
81                 )
82
83                 alias.url += (
84                         "/media/" => "/home/matthijs/django/contrib/admin/media/",
85                         "/static/" => var.site-dir + "/applications/xerxes/static/",
86                 )
87
88                 url.rewrite-once += (
89 #                       "^(/.*)$" => "/",
90                         "^(/media.*)$" => "$1",
91                         "^(/static.*)$" => "$1",
92                         "^/favicon\.ico$" => "/media/favicon.ico",
93                         "^(/.*)$" => "/blaa$1",
94                 )
95         }
96         
97         # Redirect some deprecated urls.
98         $HTTP["host"] =~ "^lextalionis2.evolution-events.nl$" {
99                 url.redirect = ( "^(.*)$" => "http://lextalionis.evolution-events.nl$1" )
100         }
101         $HTTP["host"] =~ "^raganorck2.evolution-events.nl$" {
102                 url.redirect = ( "^(.*)$" => "http://raganorck.evolution-events.nl$1" )
103         }
104         $HTTP["host"] =~ "^exodus2.evolution-events.nl$" {
105                 url.redirect = ( "^(.*)$" => "http://exodus.evolution-events.nl$1" )
106         }
107         $HTTP["host"] =~ "^www2.evolution-events.nl$" {
108                 url.redirect = ( "^(.*)$" => "http://www.evolution-events.nl$1" )
109         }
110 }