Re: Virtual hosting How-To
Are you using an older Zope? Actually I'm in the process of updating my Zope to the last version
In 2.5 a single Virtual Host Monster in the root should be able to do the job much more simply. Actually I tried to use the Virtual Host Monster with my test site wich has the latest Zope version, but I couldn't get it work as I wanted: one or more virtual websites distributed through your Zope (not in one folder as many How-Tos do it). I found How-Tos wich talk about using it in conjunction with Apache but I won't install it. Is Apache necessary to get it work?.
If the basic Zope-only capabilities don't work for you, check out http://www.zope.org/Members/sfm/SiteAccessEnhanced. Actually, I don't like to install products that do virtual hosting. If Zope has a functionality that does it, why don't use it? Or if this product is necesary to do virtual hosting, then why is it not included with Zope? I also read the documents inside this product and found that they are the same as the ones here: http://www.zope.org/Members/4am/SiteAccess2/vhosting and if you see, they also recommend this old-style method as you call it. Anyway, if you point me to the right way, I could try your advice.
Thanks for your reply, Josef.
Josef Meile wrote:
Actually I tried to use the Virtual Host Monster with my test site wich has the latest Zope version, but I couldn't get it work as I wanted: one or more virtual websites distributed through your Zope (not in one folder as many How-Tos do it). I found How-Tos wich talk about using it in conjunction with Apache but I won't install it. Is Apache necessary to get it work?.
No. The "Mappings" tab of Zope 2.5's VHM allows you to enter a series of lines like this: www.my1stsite.com/site1 www.another.org/orgs/another *.spam.us/way/deep/down/folder This instructs the VHM to send incoming requests with Host "www.my1stsite.com" to "/site1/", "www.another.org" to /orgs/another/", and any Host ending with ".spam.us" to "/way/deep/down/folder/". Note that if you redirect the Host name that you use to manage your entire Zope, you'll need to use the raw IP address to access the root folder. Cheers, Evan @ 4-am
No. The "Mappings" tab of Zope 2.5's VHM allows you to enter a series of lines like this:
www.my1stsite.com/site1 www.another.org/orgs/another *.spam.us/way/deep/down/folder
Thank you for your reply. It works perffect and as you say is better because you don't have to write extra-code and you only have to use one VirtalHostMonster in the root of your folder. I just feel like if I had reinvented the wheel. Anyway, it helped me to understand a little bit how Zope process all the requests.
participants (2)
-
Evan Simpson -
Josef Meile