|
|
@ -39,16 +39,18 @@ Alias /awstatsicons "/usr/share/awstats/wwwroot/icon/" |
|
|
|
SSLRequireSSL on |
|
|
|
SSLRequireSSL on |
|
|
|
</Directory> |
|
|
|
</Directory> |
|
|
|
|
|
|
|
|
|
|
|
foreach my $dom ($d->domains){ |
|
|
|
EOF |
|
|
|
my $stats = $dom->prop('Stats') || 'disabled'; |
|
|
|
|
|
|
|
next unless ($stats eq 'enabled'); |
|
|
|
foreach my $dom ($d->domains){ |
|
|
|
my $name = $dom->key; |
|
|
|
my $stats = $dom->prop('Stats') || 'disabled'; |
|
|
|
my @users = split /[;,]/, ($dom->prop('StatsUsers') || ''); |
|
|
|
next unless ($stats eq 'enabled'); |
|
|
|
foreach my $u (@users){ |
|
|
|
my $name = $dom->key; |
|
|
|
$OUT .= " SetEnvIf Auth-User \"$u\" allow_$name\n"; |
|
|
|
my @users = split /[;,]/, ($dom->prop('StatsUsers') || ''); |
|
|
|
} |
|
|
|
foreach my $u (@users){ |
|
|
|
my $allowfromenv = (scalar @users > 0) ? "allow from env=allow_$name":''; |
|
|
|
$OUT .= " SetEnvIf Auth-User \"$u\" allow_$name\n"; |
|
|
|
$OUT .=<<"HERE"; |
|
|
|
} |
|
|
|
|
|
|
|
my $allowfromenv = (scalar @users > 0) ? "allow from env=allow_$name":''; |
|
|
|
|
|
|
|
$OUT .=<<"HERE"; |
|
|
|
|
|
|
|
|
|
|
|
<Directory /home/e-smith/files/stats/$name> |
|
|
|
<Directory /home/e-smith/files/stats/$name> |
|
|
|
DirectoryIndex awstats.$name.html |
|
|
|
DirectoryIndex awstats.$name.html |
|
|
@ -56,8 +58,6 @@ foreach my $dom ($d->domains){ |
|
|
|
</Directory> |
|
|
|
</Directory> |
|
|
|
|
|
|
|
|
|
|
|
HERE |
|
|
|
HERE |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
EOF |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|