Re: [Zope] Apache2 Rewrite: Too much traffic OR nothing
On 11/22/06, Flemming Bjerke <[EMAIL PROTECTED]> 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/VirtualHostRoot/index.php [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 ___ 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 )
Re: [Zope] Apache2 Rewrite: Too much traffic OR nothing
onsdag 22 november 2006 14:28 skrev Jürgen Herrmann: > Re: [Zope] Apache2 Rewrite: Too much traffic OR nothing > Fra: Jürgen Herrmann <[EMAIL PROTECTED]> > 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/VirtualHostRoot/index.php [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 ___ 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 )
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: > > > 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] > > > The rule works fine when proxy.conf is like this: > > > Allow from localhost > > > 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. > > > Order Deny,Allow > Allow from localhost > Deny from all > > > or > > > Allow from localhost > Deny from all > > > 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@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 ___ 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 )
[Zope] Apache2 Rewrite: Too much traffic OR nothing
Does anyone know what to do??? The following rewrite rule works fine: 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] The rule works fine when proxy.conf is like this: Allow from localhost 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. Order Deny,Allow Allow from localhost Deny from all or Allow from localhost Deny from all 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@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 )