c31fbd56787a51448517454fe329b2b57b897d31
[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         accesslog.filename   = var.site-dir + "/logs/access.log"
11         
12         fastcgi.server += ( 
13                 ".php" => 
14                 ((
15                         "socket" => var.site-fcgi-dir + "/php",
16                         "broken-scriptfilename" => "enable",
17                 )),
18                 "/wipi" =>
19                 ((
20                         "socket" => var.site-fcgi-dir + "/wipi",
21                         "check-local" => "disable",
22                         "broken-scriptfilename" => "enable",
23                 )),
24         )
25         alias.url += (
26                 # Don't name this /wipistatic, since that will be caught by fastcgi above
27                 "/staticwipi" => var.site-dir + "/applications/wipi/static/",
28         )
29         
30         url.rewrite-once += (
31                 "^/wipi/static/(.*)$" => "/staticwipi/$1",
32                 "^/Site(/.*|)$" => "/wipi/Site/$1",
33         )
34
35         $HTTP["host"] =~ "^orga.evolution-events.nl$" {
36                 auth.backend                 = "plain"
37                 auth.backend.plain.userfile  = var.site-dir + "/conf/simple.user"
38
39                 auth.require    += ( "/private" => 
40                         ( 
41                                 "method"  => "digest",
42                                 "realm"   => "Evolution Events",
43                                 "require" => "user=admin"
44                         )
45                 )
46                 
47
48                 url.rewrite-once += (
49                         "^/forum/(.+)$" => "/forum/",
50                 )
51         }
52
53         $HTTP["host"] =~ "^xerxes.evolution-events.nl$" {
54                 fastcgi.server  += ( 
55                         "/blaa" =>
56                         ((
57                                 "socket" => var.site-fcgi-dir + "/xerxes",
58                                 "check-local" => "disable",
59                         )),
60                 )
61
62                 alias.url += (
63                         "/media/" => "/home/matthijs/django/contrib/admin/media/",
64                         "/static/" => var.site-dir + "/applications/xerxes/static/",
65                 )
66
67                 url.rewrite-once += (
68                         "^(/media.*)$" => "$1",
69                         "^(/static.*)$" => "$1",
70                         "^/favicon\.ico$" => "/media/favicon.ico",
71                         "^(/.*)$" => "/blaa$1",
72                 )
73         }
74 }