Skip to content

Commit

Permalink
Fixed: Awstats - Forbidden access (Ubuntu Lucid)
Browse files Browse the repository at this point in the history
  • Loading branch information
nuxwin committed Jul 4, 2013
1 parent 7b47473 commit 5e82437
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
7 changes: 5 additions & 2 deletions configs/debian/apache/01_awstats.conf
@@ -1,3 +1,8 @@
<Proxy *>
Order allow,deny
Allow from all
</Proxy>

Alias /awstatsicons "{AWSTATS_WEB_DIR}/icon/"

<Directory "{AWSTATS_WEB_DIR}/icon/">
Expand All @@ -10,7 +15,6 @@ Alias /awstatsicons "{AWSTATS_WEB_DIR}/icon/"
NameVirtualHost 127.0.0.1:80

<VirtualHost 127.0.0.1:80>

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^/{WEBSTATS_RPATH}/(.+)/$ http://localhost/awstats/?config=$1 [P]
Expand All @@ -27,7 +31,6 @@ NameVirtualHost 127.0.0.1:80
Order allow,deny
Allow from all
</Directory>

</VirtualHost>

# SECTION custom BEGIN.
Expand Down
8 changes: 2 additions & 6 deletions engine/PerlLib/Addons/webstats/awstats/awstats.pm
Expand Up @@ -312,12 +312,8 @@ EOF
} else { # Dynamic mode
return <<EOF;
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /{WEBSTATS_RPATH} http://localhost/{WEBSTATS_RPATH}/{DOMAIN_NAME}
ProxyPassReverse /{WEBSTATS_RPATH} http://localhost/{WEBSTATS_RPATH}/{DOMAIN_NAME}
ProxyPass /{WEBSTATS_RPATH} http://localhost/{WEBSTATS_RPATH}/{DOMAIN_NAME}
ProxyPassReverse /{WEBSTATS_RPATH} http://localhost/{WEBSTATS_RPATH}/{DOMAIN_NAME}
<Location /{WEBSTATS_RPATH}>
<IfModule mod_rewrite.c>
RewriteEngine on
Expand Down

0 comments on commit 5e82437

Please sign in to comment.