Re: [Zope] Apache2 Rewrite: Too much traffic OR nothing
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/VirtualHostR... [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/VirtualH...
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&co...
_______________________________________________ Zope maillist - Zope@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
onsdag 22 november 2006 14:28 skrev Jürgen Herrmann:
Re: [Zope] Apache2 Rewrite: Too much traffic OR nothing Fra: Jürgen Herrmann <Juergen.Herrmann@xlhost.de> Til: zope@zope.org
you should set "ProxyRequests Off"...
This helps, though, seemingly, it does not completely remove the problem: from rewrite.log =========== [domain.siteparker.com/sid#8176be8][rid#8245430/initial] (1) go-ahead with proxy request proxy:http://localhost:8080/VirtualHostBase/http/itpol.dk:80/vh/itpol/VirtualHostR... [OK] (There is no index.php in my zope!) from access.log ============ 58.49.118.186 - - [22/Nov/2006:15:34:26 +0100] "GET http://domain.siteparker.com/index.php?dom=healthinesslive.com HTTP/1.0" 404 348 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" Flemming
On 11/22/06, Flemming Bjerke <flem@bjerke.dk> wrote:
This helps, though, seemingly, it does not completely remove the problem:
from rewrite.log =========== [domain.siteparker.com/sid#8176be8][rid#8245430/initial] (1) go-ahead with proxy request proxy:http://localhost:8080/VirtualHostBase/http/itpol.dk:80/vh/itpol/VirtualHostR... [OK]
(There is no index.php in my zope!)
from access.log ============ 58.49.118.186 - - [22/Nov/2006:15:34:26 +0100] "GET http://domain.siteparker.com/index.php?dom=healthinesslive.com HTTP/1.0" 404 348 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
That's just someone poking for holes, the server returend a 404 (not found) so no harm done. Any server on the internet get's such junk requests. -- Martijn Pieters
participants (3)
-
Flemming Bjerke -
Jürgen Herrmann -
Martijn Pieters