At 03:00 AM 12/11/2003 +0000, mh wrote:
I've got Apache more or less configured to work as a proxy, but it works only for requests in the top level of a particular domain. My httpd.conf is thus:
<VirtualHost 216.127.74.118> ServerName external_name.com RewriteEngine On RewriteRule ^/(.*) \ http://www.external_name.com:8080/internal_name.com/www/$1 [P] </VirtualHost>
Requests for (say) www.external_name/img/img.gif get rewritten as referring to www.external_name.com:8080/img/img.gif which isn't really useful.
Make sure you have a Virtual host monster in your zope root. Then try: RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/www.external_name.com/www/Virtual... [L,P] (that's pretty much what I use on one of our servers) =Paul