httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norman Khine <>
Subject [users@httpd] Awstats and re-write rule for Zope
Date Mon, 05 Mar 2007 10:22:26 GMT
I have a Zope instance running on port 8080 with the following
httpd.conf vhost directive

<VirtualHost *:80>
  RewriteEngine On

  #Deny hosts map
  RewriteMap    hosts-deny      txt:/home/xxx/apache/hosts.deny
  RewriteCond   ${hosts-deny:%{REMOTE_HOST}|NOT-FOUND} !=NOT-FOUND [OR]
  RewriteCond   ${hosts-deny:%{REMOTE_ADDR}|NOT-FOUND} !=NOT-FOUND [OR]
  RewriteCond   ${hosts-deny:%{HTTP:true-client-ip}|NOT-FOUND} !=NOT-FOUND
  RewriteRule   ^/.*  -  [F]

  #Awstats rewrite
  RewriteRule   /awstats-icon(.*)
/usr/share/webapps/awstats/6.5-r1/hostroot/icon/$1 [last]
  RewriteRule /stats(.*)
/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/$1 [last]

  #ZOPE rewrite
  RewriteRule ^/(.*)$1

  ErrorLog /var/log/apache2/domain.com_error.log
  CustomLog /var/log/apache2/domain.com_access.log combined
  RewriteLog /var/log/apache2/domain.com_rewrite_log

Everything works fine, but when I go to Apache
still points to the ZOPE server and does not take into account the
Awstats rule!

Awstats works, as when I comment out the ZOPE rewrite rule and then
point my browser to I get the stats page.

Is there a way in which I can make this work for the two servers?



The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message