[Zope] Apache2 Rewrite: Too much traffic OR nothing

Flemming Bjerke flem at bjerke.dk
Wed Nov 22 07:42:28 EST 2006


Does anyone know what to do???

The following rewrite rule works fine:

<VirtualHost 85.235.249.119:80>
  ServerName www.it-pol.dk
  UseCanonicalName Off
  ServerSignature On
  RewriteEngine On
  ProxyVia On
  RewriteLog "/var/log/apache2/rewrite_log"
  RewriteLogLevel 9
  RewriteRule ^/(.*)$ 
http://localhost:8080/VirtualHostBase/http/itpol.dk:80/vh/itpol/VirtualHostRoot/$1 
[L,P]
</VirtualHost>

The rule works fine when proxy.conf is like this:

        <Proxy *>
                Allow from localhost
        </Proxy>

But, this opens for a LOT of traffic. 

The problem is that I cannot get the rewrite rule to work without allowing the 
all this unwanted traffic. For instance, the following directives give a 403 
forbidden.

        <Proxy *>
                Order Deny,Allow
                Allow from localhost
                Deny from all
        </Proxy>

or 

        <Proxy *>
                Allow from localhost
                Deny from all
        </Proxy>

Instead of localhost, I have tried IP-address and domain-name. The same 
problem!

I run Apache2.0.54 on a Debian Sarge server.

Flemming

From apache error.log:

What I don't like:
[Wed Nov 22 13:33:01 2006] [error] [client me] client denied by server 
configuration: 
proxy:http://localhost:8080/VirtualHostBase/http/www.itpol.dk:80/vh/itpol/VirtualHostRoot/

What I like:[Wed Nov 22 13:40:26 2006] [error] [client 222.82.159.40] client 
denied by server configuration: proxy:http://log.cpc.sohu.com:90/?pv.png, 
referer: 
http://adsence.sogou.com/index.html?pid=jinwutuan&ww=145&dc=1&dir=0&num=5&color=4&charset=gb




More information about the Zope mailing list