[Zope] Re: Zope-2.7 both http and https in parallel?

Sascha Ottolski sascha.ottolski at gallileus.de
Thu May 6 12:27:44 EDT 2004


> > Now the missing piece is, to add the "HTTPS ON" Header only for 
request 
> > to port 443.
> 
> exactly. Thats why I wrote a patch. It adds a <https-server> stanza
> identical to <http-server> but adding the HTTPS ON header
> automatically.

Hi Stefan,

thanks for the reply, this looks very helpfull. For those who don't want 
to patch the sources, I've found another solution, that seems to work 
quite well: add an access rule like this:

request = container.REQUEST
if request.SERVER_URL[-4:] == ':443':
    request.setServerURL(protocol='https')
    #request.setServerURL(protocol='http', port='80')

The second commented line seems to be an interesing option if you don't 
want every URL to be "https". I tried this with a pound proxy in front, 
but this should work without as well.

Cheers,

Sascha

-- 
Gallileus - the power of knowledge

Gallileus GmbH                    http://www.gallileus.info/

Pintschstraße 16                  fon +49-(0)30-41 93 43 43
10249 Berlin                      fax +49-(0)30-41 93 43 45
Germany



++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
AKTUELLER HINWEIS (Mai 2004)

Literatur Alerts - Literatursuche (wie) im Schlaf!

Ab jetzt mehr dazu unter:
http://www.gallileus.info/gallileus/about/products/alerts/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



More information about the Zope mailing list