From 69e76c209bb9ea4013daae129136a2297f5548b8 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Fri, 23 Jul 2010 13:48:22 +0200 Subject: [PATCH] lighttpd: Have an access log per subdomain. The configuration for this is autogenerated by updates-stats and included in lighttpd.conf. --- etc/lighttpd/lighttpd.conf | 4 ++++ etc/lighttpd/vhosts/blues-brothers-eu | 1 - etc/lighttpd/vhosts/evolution-events-nl | 1 - etc/lighttpd/vhosts/foresightsecurity-nl | 1 - etc/lighttpd/vhosts/hekjelarp-nl | 1 - etc/lighttpd/vhosts/ninniach-nl | 1 - etc/lighttpd/vhosts/stderr-nl | 1 - etc/lighttpd/vhosts/stdin-nl | 1 - etc/lighttpd/vhosts/stdout-nl | 1 - 9 files changed, 4 insertions(+), 8 deletions(-) diff --git a/etc/lighttpd/lighttpd.conf b/etc/lighttpd/lighttpd.conf index 50d892a..4da053e 100644 --- a/etc/lighttpd/lighttpd.conf +++ b/etc/lighttpd/lighttpd.conf @@ -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" diff --git a/etc/lighttpd/vhosts/blues-brothers-eu b/etc/lighttpd/vhosts/blues-brothers-eu index 7343016..270ef30 100644 --- a/etc/lighttpd/vhosts/blues-brothers-eu +++ b/etc/lighttpd/vhosts/blues-brothers-eu @@ -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" => diff --git a/etc/lighttpd/vhosts/evolution-events-nl b/etc/lighttpd/vhosts/evolution-events-nl index 848f475..9384245 100644 --- a/etc/lighttpd/vhosts/evolution-events-nl +++ b/etc/lighttpd/vhosts/evolution-events-nl @@ -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" => diff --git a/etc/lighttpd/vhosts/foresightsecurity-nl b/etc/lighttpd/vhosts/foresightsecurity-nl index a3efeac..3d4407d 100644 --- a/etc/lighttpd/vhosts/foresightsecurity-nl +++ b/etc/lighttpd/vhosts/foresightsecurity-nl @@ -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" => diff --git a/etc/lighttpd/vhosts/hekjelarp-nl b/etc/lighttpd/vhosts/hekjelarp-nl index d85d536..fb69ef1 100644 --- a/etc/lighttpd/vhosts/hekjelarp-nl +++ b/etc/lighttpd/vhosts/hekjelarp-nl @@ -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" } diff --git a/etc/lighttpd/vhosts/ninniach-nl b/etc/lighttpd/vhosts/ninniach-nl index 9968c5b..a7ebae8 100644 --- a/etc/lighttpd/vhosts/ninniach-nl +++ b/etc/lighttpd/vhosts/ninniach-nl @@ -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" => diff --git a/etc/lighttpd/vhosts/stderr-nl b/etc/lighttpd/vhosts/stderr-nl index 5398ed1..d251ff8 100644 --- a/etc/lighttpd/vhosts/stderr-nl +++ b/etc/lighttpd/vhosts/stderr-nl @@ -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" => "" ) diff --git a/etc/lighttpd/vhosts/stdin-nl b/etc/lighttpd/vhosts/stdin-nl index e3eb78b..56698f9 100644 --- a/etc/lighttpd/vhosts/stdin-nl +++ b/etc/lighttpd/vhosts/stdin-nl @@ -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" => (( diff --git a/etc/lighttpd/vhosts/stdout-nl b/etc/lighttpd/vhosts/stdout-nl index 98e286e..152b784 100644 --- a/etc/lighttpd/vhosts/stdout-nl +++ b/etc/lighttpd/vhosts/stdout-nl @@ -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" => (( -- 2.30.2