SiteAccess and broken manage links
Hello Zope2.3.2 Apache1.3 on Redhat6.2 SiteAccess ProxyPass combo as described by 'anser' in famous How-to http://www.zope.org/Members/anser/apache_zserver Zope is reached at http://www.mysite.com/zope Apache Directive looks like this: ServerName http://www.mysite.com ProxyPass /zope http://www.mysite.com:8888/ ProxyPassReverse /zope http://www.mysite.com:8888/ ProxyPass /misc_ http://www.mysite.com:8888/misc_ ProxyPass /p_ http://www.mysite.com:8888/p_ Ok so everything* is working fine _except_ the breadcrumb links into top of the main big Zope management window. All links from there are always missing /zope after the domain and before whatever method or object they call. Tabs work, trees work.. *[but one product 'JavaTelnetSSH' has a broken icon also. works well but looks messy&puts clients off] Q: What can I add to make this work coreectly? Is this a job for SiteAccessRule. I played with it.. fascinating dangerous stuff. How to write a rule which knows it is being called from that part of the management window and can insert a /zope? Or is there a simpler solutino use ProxyPass? Is this a b u g? Thanks - Jason ___________________________________________________________ Jason CUNLIFFE = NOMADICS['Interactive Art and Technology']
From: "Jason Cunliffe" <jasonic@nomadicsltd.com>
Zope is reached at http://www.mysite.com/zope
ProxyPass /zope http://www.mysite.com:8888/
You don't mention using a SiteRoot, and you're clearly not using a VirtualHostMonster. Either of these can fix your problem. A SiteRoot in your root Folder with blank Base and "zope" as its Path should work, although it will muck things up if you try to access the site other than through the ProxyPass. A VirtualHostMonster in your root Folder will allow you to precisely target the problem. It requires changing the ProxyPass to: ProxyPass /zope http://www.mysite.com:8888/VirtualHostBase/http/www.mysite.com:80/Virtua lHostRoot/_vh_zope Cheers, Evan @ digicool & 4-am
___________________________________________________________ Jason CUNLIFFE = NOMADICS['Interactive Art and Technology'] ----- Original Message ----- From: "Evan Simpson" <evan@4-am.com> To: "Jason Cunliffe" <jasonic@nomadicsltd.com>; <zope@zope.org> Sent: Wednesday, May 02, 2001 11:51 AM Subject: Re: [Zope] SiteAccess and broken manage links
From: "Jason Cunliffe" <jasonic@nomadicsltd.com>
Zope is reached at http://www.mysite.com/zope
ProxyPass /zope http://www.mysite.com:8888/
You don't mention using a SiteRoot, and you're clearly not using a VirtualHostMonster. Either of these can fix your problem.
A SiteRoot in your root Folder with blank Base and "zope" as its Path should work, although it will muck things up if you try to access the site other than through the ProxyPass.
Thanks ..Yes I do have SiteRoot but not a VirtualHostMonster. SiteRoot is currently set: base = http://www.mysite.com/zope path = /
A VirtualHostMonster in your root Folder will allow you to precisely target the problem. It requires changing the ProxyPass to:
ProxyPass /zope http://www.mysite.com:8888/VirtualHostBase/http/www.mysite.com:80/Virtua lHostRoot/_vh_zope
OK I will try that out.. If I use Virtual Host Monster do I still need SiteRoot? cheers - Jason
From: "Jason Cunliffe" <jasonic@nomadicsltd.com>
SiteRoot is currently set: base = http://www.mysite.com/zope path = /
This should be: base = http://www.mysite.com path = /zope
If I use Virtual Host Monster do I still need SiteRoot?
No, if you set up a VHM, you should first remove the SiteRoot. They serve the same purpose, but VHM is more flexible. Cheers, Evan @ digicool & 4-am
From: "Evan Simpson" <evan@4-am.com>
SiteRoot is currently set: base = http://www.mysite.com/zope path = /
This should be: base = http://www.mysite.com path = /zope
aahh YES! bingo ---> thanks very much++
If I use Virtual Host Monster do I still need SiteRoot?
No, if you set up a VHM, you should first remove the SiteRoot. They serve the same purpose, but VHM is more flexible.
OK will do.. :-) cheers ./JASON ___________________________________________________________ Jason CUNLIFFE = NOMADICS['Interactive Art and Technology']
FYI: After an educational but mysterious search for information about Virtual Host Monster, I just came across this very practical article: http://twsite.bizland.com/twzop0015.htm Would anyone care to comment on the advice given? [..good bad ugly brilliant .. ymmv??] ./Jason
On Thu, 3 May 2001, Jason Cunliffe wrote:
The page appeared completely empty to me (but I use "links" browser - no images, no JavaScript). Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
I see both good and bad based on perspective. On one hand, and correct me if I am wrong, he handles the whole of virtual hosting in Zope. I have not really thought of the benefits of this other than not needing apache or IIS et al, to do virtual hosting. On the other hand, using apache has benefits that I can see. First, using proxypass and site root is exceedingly simple once you know how to use it, you modify the apache conf file and add a site root object in Zope, no extra coding. With this method you have to deal with the hostname on your own, write the code and deal with the contingencies. Also, you can easily use apache to cache high overhead items and have apache serve them instead of Zope. Now, that all said, one of the greatest feature of Zope is it's extensibility. So, products may be written to do this easily, which will even the field as far as ease of use is concerned. They may also have a way to do the caching in Zope, I don't know (not enough Zen) but it seems to me the benefit of doing it outside of Zope is obvious. Just my $.02, -- Jeffrey D. Peterson Webmaster/Web & Web Applications Engineer Range TV Cable & Broadband 1818 E. 3rd Ave. Hibbing, MN 55746 jpeterso@the-bridge.net
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Jason Cunliffe Sent: Thursday, May 03, 2001 12:40 AM To: zope@zope.org Subject: [Zope] Virtual HostMonster article
FYI: After an educational but mysterious search for information about Virtual Host Monster, I just came across this very practical article:
http://twsite.bizland.com/twzop0015.htm
Would anyone care to comment on the advice given? [..good bad ugly brilliant .. ymmv??]
./Jason
_______________________________________________ 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 )
I've went one step further and built a little product that basically is a catalog-aware folder that asks for a sitename in the manage_add form. www.foo.com is converted into www_foo_com as the id (with www.foo.com as the title) on creation, and the thing adds itself to a "sites" catalog in the root folder that is used by an Access Rule to do virtual hosting. The advantage is that I don't have to go through any manual setup thingies in order to activate virtual hosts - a big advantage because I got a stack of dealers writing websites on our server and I don't want to play their typing clerk :-). Just Yet Another Way to handle it... (oh, and not having to play clerk comes out cheaper than saving a bit on an extra server ;-)) Jeff Peterson <jpeterso@the-bridge.net> said:
I see both good and bad based on perspective. On one hand, and correct me if I am wrong, he handles the whole of virtual hosting in Zope. I have not really thought of the benefits of this other than not needing apache or IIS et al, to do virtual hosting. On the other hand, using apache has benefits that I can see. First, using proxypass and site root is exceedingly simple once you know how to use it, you modify the apache conf file and add a site root object in Zope, no extra coding. With this method you have to deal with the hostname on your own, write the code and deal with the contingencies. Also, you can easily use apache to cache high overhead items and have apache serve them instead of Zope.
participants (5)
-
cg@cdegroot.com -
Evan Simpson -
Jason Cunliffe -
Jeff Peterson -
Oleg Broytmann