httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gaël Lams" <lamsg...@gmail.com>
Subject Re: [users@httpd] Awstats and re-write rule for Zope
Date Tue, 06 Mar 2007 08:36:15 GMT
Hi

I personnaly use the following similare rewrite rules on a few zope
instances and it works perfectly:

    RewriteEngine on
    RewriteRule ^/awstats/(.*) /awstats/$1 [L,PT]
    RewriteRule ^/awstatsclasses/(.*) /awstatsclasses/$1 [L,PT]
    RewriteRule ^/awstatscss/(.*) /awstatscss/$1 [L,PT]
    RewriteRule ^/awstatsicons/(.*) /awstatsicons/$1 [L,PT]
    RewriteRule ^/(.*)
http://localhost:8080/VirtualHostBase/http/%{HTTP_HOST}:80/folder_name/VirtualHostRoot/$1
[L,P]

plus the following lines:

    #
    # Directives to add to your Apache conf file to allow use of
AWStats as a CGI.
    # Note that path "/usr/local/awstats/" must reflect your AWStats
Installation path.
    Alias /awstatsclasses "/usr/local/awstats/wwwroot/classes/"
    Alias /awstatscss "/usr/local/awstats/wwwroot/css/"
    Alias /awstatsicons "/usr/local/awstats/wwwroot/icon/"
    Alias /icon "/usr/local/awstats/wwwroot/icon/"
    ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/"

Kind regards,

Gaël
Mime
View raw message