f332a7190eeab7d10e6df6483b5f9e82791d95ac
[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                 cgi.assign += ( "gitweb.cgi" => "" )
18                 # Put this alias in a url conditional, so urls like /gitweb.css won't get alias'd
19                 $HTTP["url"] =~ "^/gitweb(/.*)?$" {
20                         alias.url += ( "/gitweb" => "/usr/lib/cgi-bin/gitweb.cgi" )
21                 }
22                 $HTTP["url"] =~ ".git/" {
23                         alias.url += ( "/" => "/data/vcs/git/" )
24                 }
25         }
26
27         $HTTP["host"] =~ "blues.stderr.nl$" {
28                 auth.backend                   = "htpasswd"
29                 auth.backend.htpasswd.userfile = var.site-dir + "/conf/pandora2009.user"
30
31                 auth.require = ( 
32                         "/" => (
33                                 "method"  => "basic",
34                                 "realm"   => "Blues Brothers",
35                                 "require" => "valid-user"
36                         )
37                 )
38                 # Only publish the pandora trac repos here
39                 url.redirect += ("^/trac/?$" => "/trac/pandora")
40                 fastcgi.server    += ( 
41                         "/trac" => 
42                         ((
43                                 "socket" => var.site-fcgi-dir + "/trac",
44                                 "check-local" => "disable",
45                         ))
46                 )
47         }
48
49         $HTTP["host"] =~ "^drsnuggles.stderr.nl$" {
50                 alias.url += ("/ldap" => "/usr/share/phpldapadmin-patched/htdocs")
51         }
52
53         $HTTP["host"] =~ "^www.stderr.nl$" {
54                 $HTTP["url"] =~ "^/blosxom" {
55                         cgi.assign += ( "blosxom.cgi" => "/usr/local/bin/aclperl" )
56                         alias.url += ( "/blosxom" => var.site-dir + "/applications/blosxom/blosxom.cgi" )
57                         setenv.add-environment += (
58                                 "BLOSXOM_CONFIG_FILE" => var.site-dir + "/conf/blosxom.conf",
59                                 "BLOSXOM_DATA_BASE" => var.site-dir + "/data/blosxom",
60                                 "BLOSXOM_CODE_BASE" => var.site-dir + "/applications/blosxom",
61                                 "BLOSXOM_HTDOCS_URL" =>  "/blog/",
62                         )
63                 }
64                 # Disabled for now, since the only working trac is the pandora trac
65                 #fastcgi.server    += ( 
66                 #       "/trac" => 
67                 #       ((
68                 #               "socket" => var.site-fcgi-dir + "/trac",
69                 #               "check-local" => "disable",
70                 #       ))
71                 #)
72         }
73 }