fixed syscp-bug #1269 (false AwStats RewriteRule);

This commit is contained in:
Michael Kaufmann (d00p)
2010-01-20 10:39:52 +00:00
parent 64290e4d7c
commit d329eb3b63
2 changed files with 3 additions and 3 deletions

2
TODO
View File

@@ -6,7 +6,7 @@ FIXED 0001272 Default Config for libnss incomplete (debian/lenny)
FIXED 0001281 Wrong open_basedir directive
0001280 deb packet 1.4.2.1-2 fu*ked
FIXED 0001279 incorrect usage of escapeshellcmd
0001269 AWStats RewriteRule is wrong
FIXED 0001269 AWStats RewriteRule is wrong
0001278 Customer and domain directories are not created
0001277 Apache Redirect => permanent 301
0001276 Bind Zones Not Updated on Nameserver Change

View File

@@ -29,8 +29,8 @@ function createAWStatsVhost($siteDomain, $settings = null)
{
$vhosts_file = ' # AWStats statistics' . "\n";
$vhosts_file.= ' RewriteEngine On' . "\n";
$vhosts_file.= ' RewriteRule ^/awstats(/.*)? /awstats/awstats.pl?config=' . $siteDomain . ' [L,PT]' . "\n";
$vhosts_file.= ' RewriteRule ^/awstats.pl(.*)* /awstats/awstats.pl$1 [QSA,L,PT]' . "\n";
$vhosts_file.= ' RewriteRule ^/awstats(/.*)?$ /awstats/awstats.pl?config=' . $siteDomain . ' [L,PT]' . "\n";
$vhosts_file.= ' RewriteRule ^/awstats.pl(.*)$ /awstats/awstats.pl$1 [QSA,L,PT]' . "\n";
}
else
{