[Zope] Apache2 Rewrite: Too much traffic OR nothing

Jürgen Herrmann Juergen.Herrmann at XLhost.de
Wed Nov 22 08:28:44 EST 2006


you should set "ProxyRequests Off"...

regards, jürgen herrmann

On Wed, November 22, 2006 13:42, Flemming Bjerke wrote:
> 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
>
>
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
>


_______________________________________________________________________

>> XLhost.de - eXperts in Linux hosting <<

Jürgen Herrmann
Konrad Adenauer Allee 43, DE-93051 Regensburg

Fon:  +49 (0)700 XLHOSTDE [0700 95467833]
Fax:  +49 (0)721 151 463027
WEB:  http://www.XLhost.de



_______________________________________________________________________

>> XLhost.de - eXperts in Linux hosting <<

Jürgen Herrmann
Konrad Adenauer Allee 43, DE-93051 Regensburg

Fon:  +49 (0)700 XLHOSTDE [0700 95467833]
Fax:  +49 (0)721 151 463027
WEB:  http://www.XLhost.de


More information about the Zope mailing list