Awstats and re-write rule for Zope

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
I have a Zope instance running on port 8080 with the following
httpd.conf vhost directive

<VirtualHost *:80>
  ServerName domain.com
  ServerAlias www.domain.com
  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/awstats.pl$1 [last]

  #ZOPE rewrite
  #
  RewriteRule ^/(.*)
http://domain.com:8080/VirtualHostBase/http/domain.com:80/users/user/VirtualHostRoot/$1
[L,P]

  #Logs
  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
</VirtualHost>


Everything works fine, but when I go to http://domain.com/stats 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 http://domain.com/stats I get the stats page.

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

Cheers

Norman






---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux