lighttpd: Use += instead of = to increase robustness.
authorMatthijs Kooijman <matthijs@stdin.nl>
Wed, 24 Jun 2009 16:56:50 +0000 (18:56 +0200)
committerMatthijs Kooijman <matthijs@stdin.nl>
Wed, 24 Jun 2009 16:56:50 +0000 (18:56 +0200)
= might overwrite other settings, while += will preserve them.

etc/lighttpd/vhosts/evolution-events-nl

index ca5e1bf55e79175045896e6836831c6e87a96b2a..610be9fa29f1c406a4cf04e4a3560c839de8740f 100644 (file)
@@ -9,7 +9,7 @@ $HTTP["host"] =~ ".evolution-events.nl$" {
        evhost.path-pattern  = var.site-dir + "/htdocs/%3/"
        accesslog.filename   = var.site-dir + "/logs/access.log"
        
-       fastcgi.server = ( 
+       fastcgi.server += ( 
                ".php" => 
                ((
                        "socket" => var.site-fcgi-dir + "/php",
@@ -22,12 +22,12 @@ $HTTP["host"] =~ ".evolution-events.nl$" {
                        "broken-scriptfilename" => "enable",
                )),
        )
-       alias.url = (
+       alias.url += (
                # Don't name this /wipistatic, since that will be caught by fastcgi above
                "/staticwipi" => var.site-dir + "/applications/wipi/static/",
        )
        
-       url.rewrite-once = (
+       url.rewrite-once += (
                "^/wipi/static/(.*)$" => "/staticwipi/$1",
                "^(/.*)$" => "$1",
        )
@@ -36,7 +36,7 @@ $HTTP["host"] =~ ".evolution-events.nl$" {
                auth.backend                 = "plain"
                auth.backend.plain.userfile  = var.site-dir + "/conf/simple.user"
 
-               auth.require    = ( "/private" => 
+               auth.require    += ( "/private" => 
                        ( 
                                "method"  => "digest",
                                "realm"   => "Evolution Events",
@@ -45,13 +45,13 @@ $HTTP["host"] =~ ".evolution-events.nl$" {
                )
                
 
-               url.rewrite-once = (
+               url.rewrite-once += (
                        "^/forum/(.+)$" => "/forum/",
                )
        }
 
        $HTTP["host"] =~ "^xerxes.evolution-events.nl$" {
-               fastcgi.server  = ( 
+               fastcgi.server  += ( 
                        "/blaa" =>
                        ((
                                "socket" => var.site-fcgi-dir + "/xerxes",
@@ -59,12 +59,12 @@ $HTTP["host"] =~ ".evolution-events.nl$" {
                        )),
                )
 
-               alias.url = (
+               alias.url += (
                        "/media/" => "/home/matthijs/django/contrib/admin/media/",
                        "/static/" => var.site-dir + "/applications/xerxes/static/",
                )
 
-               url.rewrite-once = (
+               url.rewrite-once += (
                        "^(/media.*)$" => "$1",
                        "^(/static.*)$" => "$1",
                        "^/favicon\.ico$" => "/media/favicon.ico",