lighttpd: Re-enable cgi handling for gitweb.
[matthijs/servers/drsnuggles.git] / etc / init.d / fastcgi
index 26e800c243512cb77e01837369345711d00e3942..7a2ec13e4f14aea02295f49a36537f01e8e2a7e2 100755 (executable)
@@ -23,7 +23,7 @@ ROOT_DIR="/data/www"
 
  
 SITES=[
-       ('stderr.nl',             ['php']),
+       ('stderr.nl',             ['php', ('trac', 'applications/trac/trac.fcgi')]),
 #      ('stdin.nl',              ['php']),
        ('stdout.nl',             ['php']),
        ('ninniach.nl',           ['php']),
@@ -76,6 +76,9 @@ for (site, apps) in SITES:
        site_dir   = os.path.join(ROOT_DIR, site)
        socket_dir = os.path.join(SOCKET_DIR, site_name)
 
+       # Pass the site dir to all fastcgi processes
+       os.environ['SITE_DIR'] = site_dir
+
        if not site_dir:
                raise Exception("Site dir does not exist: %s" % (site_dir))