Re: [Zope] Virtual hosting with ZServer
And what do you think about that : http://www.egroups.com/group/medusa/67.html? FR
Martijn Pieters <mj@antraciet.nl> 09/11/99 11:24:18 >>> At 10:40 09/11/99 , Francois-Regis CHALAOUX wrote: How is it possible to setup virtualhosting with ZServer?
No, you'll need Apache, or some other webserver for that. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-7502100 Fax: +31-35-7502111 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------ _______________________________________________ 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 )
At 11:45 09/11/99 , Francois-Regis CHALAOUX wrote:
And what do you think about that : http://www.egroups.com/group/medusa/67.html?
I wasn't aware of that module, as it is not included in the Zope distribution. You could try and see if it works of course. It looks like you could change lines 429 and 430 to: zh = zhttp_handler(MODULE, '', HTTP_ENV) vh = virtual_handler.virtual_handler_with_host(zh, 'www.yourhost.com') hs.install_handler(vh) But as I don't have the virtual_host.py module, and I therefore didn't test this, YMMV. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-7502100 Fax: +31-35-7502111 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
Francois-Regis CHALAOUX wrote:
And what do you think about that : http://www.egroups.com/group/medusa/67.html?
Not having tried it, I can't say for sure, but it appears that this module will only provide the first half of virtual hosting. You'll still need logical URI rewriting inside Zope unless your virtual hosts all map onto the Zope root folder. For example, if you serve 'www.site.com' from the Zope folder '/site', all Zope-generated URIs and URLs will accumulate 'site' path elements, which isn't fatal but can be very annoying. Cheers, Evan @ 4-am
participants (3)
-
Evan Simpson -
Francois-Regis CHALAOUX -
Martijn Pieters