lighttpd: Update indigetes.stderr.nl to blues.
[matthijs/servers/drsnuggles.git] / etc / lighttpd / vhosts / stderr-nl
1 $HTTP["host"] =~ ".stderr.nl$" {
2         var.site-dir         = var.root-dir + "/stderr.nl"
3         var.site-fcgi-dir    = var.fcgi-dir + "/stderr-nl"
4
5         evhost.path-pattern  = var.site-dir + "/htdocs/%3/"
6         accesslog.filename   = var.site-dir + "/logs/access.log"
7
8         fastcgi.server    = ( 
9                 ".php" => 
10                 ((
11                         "socket" => var.site-fcgi-dir + "/php",
12                         "broken-scriptfilename" => "enable",
13                 ))
14         )
15
16         $HTTP["host"] =~ "git.stderr.nl$" {
17                 # Put this alias in a url conditional, so urls like /gitweb.css won't get alias'd
18                 $HTTP["url"] =~ "^/gitweb(/.*)?$" {
19                         alias.url += ( "/gitweb" => "/usr/lib/cgi-bin/gitweb.cgi" )
20                 }
21                 $HTTP["url"] =~ ".git/" {
22                         alias.url += ( "/" => "/data/vcs/git/" )
23                 }
24         }
25
26         $HTTP["host"] =~ "blues.stderr.nl$" {
27                 auth.backend                   = "htpasswd"
28                 auth.backend.htpasswd.userfile = var.site-dir + "/conf/pandora2009.user"
29
30                 auth.require = ( 
31                         "/" => (
32                                 "method"  => "basic",
33                                 "realm"   => "Blues Brothers",
34                                 "require" => "valid-user"
35                         )
36                 )
37                 # Only publish the pandora trac repos here
38                 url.redirect += ("^/trac/?$" => "/trac/pandora")
39                 fastcgi.server    += ( 
40                         "/trac" => 
41                         ((
42                                 "socket" => var.site-fcgi-dir + "/trac",
43                                 "check-local" => "disable",
44                         ))
45                 )
46         }
47
48         $HTTP["host"] =~ "^drsnuggles.stderr.nl$" {
49                 alias.url += ("/ldap" => "/usr/share/phpldapadmin-patched/htdocs")
50         }
51
52         $HTTP["host"] =~ "^www.stderr.nl$" {
53                 $HTTP["url"] =~ "^/blosxom" {
54                         cgi.assign += ( "blosxom.cgi" => "/usr/local/bin/aclperl" )
55                         alias.url += ( "/blosxom" => var.site-dir + "/applications/blosxom/blosxom.cgi" )
56                         setenv.add-environment += (
57                                 "BLOSXOM_CONFIG_FILE" => var.site-dir + "/conf/blosxom.conf",
58                                 "BLOSXOM_DATA_BASE" => var.site-dir + "/data/blosxom",
59                                 "BLOSXOM_CODE_BASE" => var.site-dir + "/applications/blosxom",
60                                 "BLOSXOM_HTDOCS_URL" =>  "/blog/",
61                         )
62                 }
63                 # Disabled for now, since the only working trac is the pandora trac
64                 #fastcgi.server    += ( 
65                 #       "/trac" => 
66                 #       ((
67                 #               "socket" => var.site-fcgi-dir + "/trac",
68                 #               "check-local" => "disable",
69                 #       ))
70                 #)
71         }
72 }