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