From: UnixOS2 Archive To: "UnixOS2 Archive" Date: Thu, 29 May 2003 14:05:40 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 119 ************************************************** Wednesday 28 May 2003 Number 119 ************************************************** Subjects for today 1 Open Proxy Warning! : Ted Sikora 2 Re: packet donation : Dan Drake"
3 Re: Open Proxy Warning! : Ted Sikora **= Email 1 ==========================** Date: Thu, 29 May 2003 13:53:01 +0000 From: Ted Sikora Subject: Open Proxy Warning! Don't use Apache's proxy with Zope it will create an open-http proxy used by anyone and anyway they want. Instead use the Apache rewrite module. Here's how: Add a VHM VirtualHostMonster in Zope's root from the add section. Use any id you want. Leave unconfigured. Then edit Apache as follows and restart that's it. You will need a tag on each page in Zope after the tag. # NameVirtualHost * ServerName domain.com ServerAlias www.domain.com domain.com DocumentRoot /Apps/apache2/htdocs ServerName archives.domain.com DocumentRoot /Apps/apache2/archives RewriteEngine On RewriteLog "/Apps/apache2/logs/rewrite_log" RewriteLogLevel 1 RewriteRule ^/local/ - [L] RewriteRule ^/icons/ - [L] RewriteRule ^/~(.*) - [L] RewriteRule ^/cgi-bin/ - [L] RewriteRule ^/(.*) \http://domain.com:8080/VirtualHostBase/http/archives.domain.com/archives/$1 [P] Make sure you have the proxy and rewrite modules uncommented. -- T.Sikora tsikora at ntplx.net **= Email 2 ==========================** Date: Thu, 29 May 2003 18:05:18 -0700 (PDT) From: "Dan Drake"
Subject: Re: packet donation On Tue, 27 May 2003 03:07:04 +1000 (EST), IanM wrote: >Ping > >Cheers >IanM >http://www.os2site.com/ > >Some days the only good things on TV are the vase and the clock. > And the penguin, of course. -- Dan Drake dd at dandrake.com http://www.dandrake.com/ **= Email 3 ==========================** Date: Thu, 29 May 2003 21:44:21 +0000 From: Ted Sikora Subject: Re: Open Proxy Warning! Minor revision use this rule instead. With the :80 added url mapping in Zope is perfect. The tag is not needed with this. Hope this helps. The best part is you can use virtual sites in both Zope and Apache this way on the same server. RewriteRule ^/(.*) \http://domain.com:8080/VirtualHostBase/http/archives.domain.com:80/archives/$1 [P] Ted Sikora wrote: > Don't use Apache's proxy with Zope it will create an open-http proxy > used by anyone and anyway they want. Instead use the Apache rewrite > module. Here's how: > > Add a VHM VirtualHostMonster in Zope's root from the add section. Use > any id you want. Leave unconfigured. Then edit Apache as follows and > restart that's it. > > You will need a tag on each > page in Zope after the tag. > > # > NameVirtualHost * > > > ServerName domain.com > ServerAlias www.domain.com domain.com > DocumentRoot /Apps/apache2/htdocs > > > > ServerName archives.domain.com > DocumentRoot /Apps/apache2/archives > RewriteEngine On > RewriteLog "/Apps/apache2/logs/rewrite_log" > RewriteLogLevel 1 > RewriteRule ^/local/ - [L] > RewriteRule ^/icons/ - [L] > RewriteRule ^/~(.*) - [L] > RewriteRule ^/cgi-bin/ - [L] > RewriteRule ^/(.*) > \http://domain.com:8080/VirtualHostBase/http/archives.domain.com/archives/$1 > > [P] > > > > Make sure you have the proxy and rewrite modules uncommented. > -- T.Sikora tsikora at ntplx.net