Apache being troublesome (correction of typo)
Hello, I'm a new user to Zope and 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. Whilst this is strictly speaking an Apache issue and not Zope, I'm sure I'm not the first to come across this problem with Apache proxying to Zope. mod_rewrite was compiled into httpd especially for Zope, so the above is my entire experience with it. Any hints very much appreciated!
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
participants (2)
-
mh -
Paul Howell