[Zope] problems with SiteRoot in Zope 2.5.1
Evan Simpson
evan@4-am.com
Mon, 29 Jul 2002 12:04:25 -0500
Chris Withers wrote:
> Yes, SiteRoots are no longer in favour with the powers that be. I still
> think they have their uses ;-)
Citizen Withers, your statement violates the Happy Voluntary Product
Guidelines. Please report to the nearest PTB Help Station for
assistance. ;-)
>> Does anybody know whether it is possible to have a configuration with
>> both
>> http and https directing to the same pages like the example in the above
>> mentioned document (apache_zserver_ssl)?
Ria, we'll need more info on the problem you're having in order to help.
If you do decide to try VHM, you should be able to get what you want
with the following steps:
1. Create a VHM in your Zope root. Call it whatever you like, as long
as the name doesn't clash with other objects ids, perhaps "vhm".
2. In the Apache VirtualHost section for port 80, replace the ProxyPass
and ProxyPassReverse lines with the single line:
ProxyPass /
http://zope_server:8080/VirtualHostBase/http/www.domain.com:80/site_path/VirtualHostRoot/
3. In the Apache VirtualHost section for port 443 (https), replace the
ProxyPass and ProxyPassReverse lines with the single line:
ProxyPass /
http://zope_server:8080/VirtualHostBase/https/www.domain.com:80/site_path/VirtualHostRoot/
In the examples above, "zope_server:8080" is the host/port on which your
Zope is listening, "www.domain.com" is your site's domain name, and
"site_path" is the path from the root of your Zope to the Folder which
contains this site (leave it out if your site lives in the Zope root).
You can determine whether a particular request uses SSL by checking
"REQUEST['URL'].startswith('https')".
Cheers,
Evan @ 4-am