[Zope] Apache and Zope (mod_rewrite, mod_proxy) and https question
Pieter Biemond prive
pieterb@gewis.nl
Wed, 22 May 2002 20:31:48 +0200 (CEST)
Helo,
I'm trying to setup Zope behind an Apache webserver and use Apache
for the SSL-support. I want external visitors (from outside) _and_
users of the management interface to be forced to use SSL.
I made a /ssl SiteRoot object to https://intranet.company.com/ which
works great for accessing the site over https (not managing it)
I checked out several howto, such as:
http://www.zope.org/Members/fritz/howto_apache_and_siteroot
http://www.zope.org/Members/unfo/apache_zserver_ssl
but unfortuately they could not solve my problem.
The problem I have is that I can't access the root of the ZMI over
https (i only get the manage interface for the SSL-folder, which
is not the thing I would like). Can anybody explain me how I need
to make the rewrite-rules to display the Zope-root instead of the
/ssl-folder as root?
Is there any way to use a siteroot _and_ access the root folder?
Any help would be appreciated,
Pieter
#------------ start of parts of my Apache httpd.conf
RewriteEngine On
# force clients from the internet to use HTTPS,
# 1.2.3.4=firewall-IP
RewriteCond %{REMOTE_ADDR} !^1\.2\.3\.4$
RewriteCond %{HTTPS} !=on
RewriteRule ^/(.*)$ https://%{SERVER_NAME}/$1 [R,L]
RewriteRule ^/(.*)manage(.*)$ https://%{SERVER_NAME}/$1manage$2 [R,L]
RewriteRule ^/(.*) http://127.0.0.1:8080/$1 [L,P]
<VirtualHost _default_:443>
RewriteEngine On
# force clients from the internet to use HTTPS,
# 1.2.3.4=firewall-IP
# make sure to rewrite http://server:443/ to https://server/
RewriteCond %{REMOTE_ADDR} !^1\.2\.3\.4$
RewriteCond %{HTTPS} !=on
RewriteRule ^/(.*)$ https://%{SERVER_NAME}/$1 [R,L]
# use zope server at localhost, port 8080
# use ssl SiteRoot to rewrite root to https://server/ instead
# of http://127.0.0.1:8080/
RewriteRule ^/(.*) http://127.0.0.1:8080/ssl/1 [L,P]
</VirtualHost>
#----------------------------------