From 02b97137d1584b188bacd125a93245218ec52f44 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 29 Mar 2012 12:01:24 +0200 Subject: [PATCH] fix httpd template --- .../templates/etc/httpd/conf/httpd.conf/98awstats | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98awstats b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98awstats index c5fa621..62d6259 100644 --- a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98awstats +++ b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98awstats @@ -39,16 +39,18 @@ Alias /awstatsicons "/usr/share/awstats/wwwroot/icon/" SSLRequireSSL on -foreach my $dom ($d->domains){ - my $stats = $dom->prop('Stats') || 'disabled'; - next unless ($stats eq 'enabled'); - my $name = $dom->key; - my @users = split /[;,]/, ($dom->prop('StatsUsers') || ''); - foreach my $u (@users){ - $OUT .= " SetEnvIf Auth-User \"$u\" allow_$name\n"; - } - my $allowfromenv = (scalar @users > 0) ? "allow from env=allow_$name":''; - $OUT .=<<"HERE"; +EOF + + foreach my $dom ($d->domains){ + my $stats = $dom->prop('Stats') || 'disabled'; + next unless ($stats eq 'enabled'); + my $name = $dom->key; + my @users = split /[;,]/, ($dom->prop('StatsUsers') || ''); + foreach my $u (@users){ + $OUT .= " SetEnvIf Auth-User \"$u\" allow_$name\n"; + } + my $allowfromenv = (scalar @users > 0) ? "allow from env=allow_$name":''; + $OUT .=<<"HERE"; DirectoryIndex awstats.$name.html @@ -56,8 +58,6 @@ foreach my $dom ($d->domains){ HERE -} - -EOF + } } }