lighttpd: Have an access log per subdomain.
authorMatthijs Kooijman <matthijs@stdin.nl>
Fri, 23 Jul 2010 11:48:22 +0000 (13:48 +0200)
committerMatthijs Kooijman <matthijs@stdin.nl>
Fri, 23 Jul 2010 11:48:22 +0000 (13:48 +0200)
The configuration for this is autogenerated by updates-stats and
included in lighttpd.conf.

etc/lighttpd/lighttpd.conf
etc/lighttpd/vhosts/blues-brothers-eu
etc/lighttpd/vhosts/evolution-events-nl
etc/lighttpd/vhosts/foresightsecurity-nl
etc/lighttpd/vhosts/hekjelarp-nl
etc/lighttpd/vhosts/ninniach-nl
etc/lighttpd/vhosts/stderr-nl
etc/lighttpd/vhosts/stdin-nl
etc/lighttpd/vhosts/stdout-nl

index 50d892aa709ff34cb9d7c89dd4f5009d459f17d2..4da053e111b8e03dd287baf5175501fe375ba6c4 100644 (file)
@@ -88,3 +88,7 @@ include_shell var.conf-dir + "/scripts/create-mime.assign.pl"
 
 ## load vhosts
 include_shell var.conf-dir + "/scripts/include-vhosts.pl"
+
+# Include autogenerated logging configuration to have a separate access log
+# file for every subdomain.
+include var.conf-dir + "/logging.conf"
index 734301688026f260600ca6954388d744d570b9c5..270ef3005827cd6a4fbb6499c4b1d6744d3cb2c1 100644 (file)
@@ -3,7 +3,6 @@ $HTTP["host"] =~ ".blues-brothers.eu$" {
        var.site-fcgi-dir    = var.fcgi-dir + "/blues-brothers-eu"
 
        evhost.path-pattern  = var.site-dir + "/htdocs/%3/"
-       accesslog.filename   = var.site-dir + "/logs/access.log"
 
        fastcgi.server    = ( 
                ".php" => 
index 848f47564f44c46b85dbbb062e30aa284e4839a9..9384245ca28a9f73ca660c18e1a9cd8d752197e5 100644 (file)
@@ -7,7 +7,6 @@ $HTTP["host"] =~ ".evolution-events.nl$" {
        var.site-fcgi-dir    = var.fcgi-dir + "/evolution-events-nl"
 
        evhost.path-pattern  = var.site-dir + "/htdocs/%3/"
-       accesslog.filename   = var.site-dir + "/logs/access.log"
        
        fastcgi.server += ( 
                ".php" => 
index a3efeace76c5051ce2b83b5843c5a69d85f50199..3d4407df72cb819f51f9b01cb9d0624450159497 100644 (file)
@@ -3,7 +3,6 @@ $HTTP["host"] =~ ".foresightsecurity.nl$" {
        var.site-fcgi-dir    = var.fcgi-dir + "/evolution-events-nl"
 
        evhost.path-pattern  = var.site-dir + "/htdocs/%3/"
-       accesslog.filename   = var.site-dir + "/logs/access.log"
 
        fastcgi.server    = ( 
                ".php" => 
index d85d53649547f8e534e51aa003e25be339628e65..fb69ef11997c12ea8eb743f372b32890d3096058 100644 (file)
@@ -7,5 +7,4 @@ $HTTP["host"] =~ ".hekjelarp.nl$" {
        var.site-fcgi-dir    = var.fcgi-dir + "/hekjelarp-nl"
 
        evhost.path-pattern  = var.site-dir + "/htdocs/%3/"
-       accesslog.filename   = var.site-dir + "/logs/access.log"
 }
index 9968c5bef1b5a753bcd5c53c7a79abf159f49530..a7ebae8525b5dfae522f1f15d56696c1d0477ab9 100644 (file)
@@ -3,7 +3,6 @@ $HTTP["host"] =~ ".ninniach.nl$" {
        var.site-fcgi-dir    = var.fcgi-dir + "/ninniach-nl"
 
        evhost.path-pattern  = var.site-dir + "/htdocs/%3/"
-       accesslog.filename   = var.site-dir + "/logs/access.log"
 
        fastcgi.server    = ( 
                ".php" => 
index 5398ed18feaea8006798ae110572d5a5ee0f2bf7..d251ff8759788699585f4c7d873b48baafd542fd 100644 (file)
@@ -3,7 +3,6 @@ $HTTP["host"] =~ ".stderr.nl$" {
        var.site-fcgi-dir    = var.fcgi-dir + "/stderr-nl"
 
        evhost.path-pattern  = var.site-dir + "/htdocs/%3/"
-       accesslog.filename   = var.site-dir + "/logs/access.log"
 
        $HTTP["host"] =~ "git.stderr.nl$" {
                cgi.assign += ( "gitweb.cgi" => "" )
index e3eb78bb0ee3a4138b62bfe66dd2fc76b510a16e..56698f97b6193c0b60a8e1cd0b481db83339bd9e 100644 (file)
@@ -3,7 +3,6 @@ $HTTP["host"] =~ ".stdin.nl$" {
        var.site-fcgi-dir    = var.fcgi-dir + "/stdin-nl"
 
        evhost.path-pattern  = var.site-dir + "/htdocs/%3/"
-       accesslog.filename   = var.site-dir + "/logs/access.log"
 
        fastcgi.server    = ( ".php" => 
                ((
index 98e286e7652b7cc3f6dc46b04384bd45cc191bc2..152b784da8c497b8a1f308c96903f6472025bbd3 100644 (file)
@@ -3,7 +3,6 @@ $HTTP["host"] =~ ".stdout.nl$" {
        var.site-fcgi-dir    = var.fcgi-dir + "/stdout-nl"
 
        evhost.path-pattern  = var.site-dir + "/htdocs/%3/"
-       accesslog.filename   = var.site-dir + "/logs/access.log"
 
        fastcgi.server    = ( ".php" => 
                ((