[Zope] VHM and hard-wired URLs generated by stock Zope code

Chris Keyes chrisk@nipltd.com
Tue, 06 Nov 2001 15:27:58 +0000


Hmm, I'm pretty sure that the ZMI works ok with the right config, we 
have many servers running in various places with the whole zope instance 
running through virtual hosting. In many cases the ports that zope runs 
on are blocked from outside. I too get the <img SRC="/p_/pl" ALT="+" 
BORDER=0> however this works fine through the rewrite rules we have, so 
I guess its a problem with you only giving access to certain parts of 
zope :-( We are rewriting the whole of say myzope.mydomain.com to 
somewhere like localhost:8080/stuff/users/myzope

This is my proxy pass from apache.conf, works with a Virtual Host 
Monster in the root :-)


<VirtualHost localzope>

   ServerName      myserver.mydomain.com
   ServerAdmin     me@mydomain.com
   RewriteEngine    On
   RewriteRule      ^/error/(.*)$ /error/$1 [L]
   RewriteRule      ^(.*)$ 
http://localhost:8080/VirtualHostBase/http/myserver.mydomain.com:80/VirtualHostRoot$1 
[P]
   ProxyPassReverse / 
http://localhost:8080/VirtualHostBase/http/myserver.mydomain.com:80/VirtualHostRoot/
   ErrorDocument    502 /error/error502.html
   CustomLog        /mylogdir/access_log combined
   ErrorLog         /mylogdir/error_log

</VirtualHost>


There is some extra stuff so apache displays an error if zope is not 
running, but the two rewrite lines are there

Hope thats of some use :-)

ChrisK


Richard Barrett wrote:

> Running Zope 2.3.3 with python 1.5.2
> 
> I run Zope on a private IP numbered server for users on our LAN but 
> expose some parts of the Zope tree via Apache using ProxyPass and VHM to 
> adjust the URLs on our pages.
> 
> The problem I'm having is with some of the hard-wired URLs produced by 
> some of the standard Zope code. For instance, the dtml-tree tag 
> generates things like:
> 
> <IMG SRC="/p_/mi" ALT="-" BORDER=0>
> 
> The ZMI also does the same although that is less of a problem as, in 
> general, I do not use the ZMI through the Apache proxy. But I might want 
> to in the future.
> 
> I do not want to use extra ProxyPass directives in my Apache config to 
> handle these "unadjustable" hard-wired URLs. Aside from hacking at the 
> source code does anyone know of a clean solution for this problem.
> 
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>