lighttpd: Add config for Hunternet.
authorMatthijs Kooijman <matthijs@stdin.nl>
Mon, 4 Jan 2010 19:39:24 +0000 (20:39 +0100)
committerMatthijs Kooijman <matthijs@stdin.nl>
Tue, 5 Jan 2010 12:55:42 +0000 (13:55 +0100)
etc/init.d/fastcgi
etc/lighttpd/vhosts/evolution-events-nl

index 209ea44a007a444887fe0ddc889de1a2db37b16f..67b7ac88df7ea1e3974a501e18c0b0a0c15ef42f 100755 (executable)
@@ -28,7 +28,7 @@ SITES=[
        ('stdout.nl',             ['php']),
        ('ninniach.nl',           ['php']),
        ('blues-brothers.eu',     ['php']),
-       ('evolution-events.nl',   ['php', ('wipi', 'applications/wipi/wipi.fcgi')]), #, ('xerxes', 'applications/xerxes/manage.py runfcgi')]),
+       ('evolution-events.nl',   ['php', ('wipi', 'applications/wipi/wipi.fcgi'), ('hunternet', 'applications/lexnet/manage.py runfcgi')]), #, ('xerxes', 'applications/xerxes/manage.py runfcgi')]),
 #      ('stdio.flexvps.nl',      ['php']),
 #      ('foresightsecurity.nl',  ['php']),
 ]
index 1a7085b1f986591b12658a9848a93bce03c3ef6b..933cdcfcb4448a1f5ff847d6e7f5fc70910d154f 100644 (file)
@@ -49,6 +49,29 @@ $HTTP["host"] =~ ".evolution-events.nl$" {
                )
        }
 
+       $HTTP["host"] =~ "^hunter-net.evolution-events.nl$" {
+               fastcgi.server  += ( 
+                       "/blaa" =>
+                       ((
+                               "socket" => var.site-fcgi-dir + "/hunternet",
+                               "check-local" => "disable",
+                       )),
+               )
+
+               alias.url += (
+                       "/media/" => "/usr/share/python-support/python-django/django/contrib/admin/media/",
+                       "/static/" => var.site-dir + "/applications/xerxes/media/",
+               )
+
+               url.rewrite-once += (
+#                      "^(/.*)$" => "/",
+                       "^(/media.*)$" => "$1",
+                       "^(/static.*)$" => "$1",
+                       "^/favicon\.ico$" => "/media/favicon.ico",
+                       "^(/.*)$" => "/blaa$1",
+               )
+       }
+
        $HTTP["host"] =~ "^xerxes.evolution-events.nl$" {
                fastcgi.server  += ( 
                        "/blaa" =>
@@ -64,6 +87,7 @@ $HTTP["host"] =~ ".evolution-events.nl$" {
                )
 
                url.rewrite-once += (
+#                      "^(/.*)$" => "/",
                        "^(/media.*)$" => "$1",
                        "^(/static.*)$" => "$1",
                        "^/favicon\.ico$" => "/media/favicon.ico",