Date: Thu, 29 May 2003 02:42:55 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [Ux2bs_Archive] No. 146 ************************************************** Wednesday 28 May 2003 Number 146 ************************************************** Subjects for today 1 Re: Open Proxy Warning! : brpms at earthlink.net 2 Open Proxy Warning! : Ted Sikora 3 Re: Open Proxy Warning! : Ted Sikora **= Email 1 ==========================** Date: Thu, 29 May 2003 13:49:27 -0600 From: brpms at earthlink.net Subject: Re: Open Proxy Warning! Thanks for the info! Paul Schwartz -- ----------------------------------------------------------- brpms at earthlink.net ----------------------------------------------------------- _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 2 ==========================** 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 _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 3 ==========================** Date: Thu, 29 May 2003 21:43:48 +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 _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs