Re: Zope-2.7 both http and https in parallel?
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/ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Sascha Ottolski <sascha.ottolski@gallileus.de> writes:
request = container.REQUEST if request.SERVER_URL[-4:] == ':443': request.setServerURL(protocol='https') #request.setServerURL(protocol='http', port='80')
This looks *really* cool. Espicially the possibility, to enable/disable https on a per-Folder basis. -- -- *DON'T* TRY TO REACH ME DIRECTLY AT ABOVE EMAIL ADDRESS. Any reply -- received off-list at that address will be *silently* and -- *unconditionally* dropped. You can attribute this inconvenience to -- the proliferation of spammers on the Internet. I hope, you can -- understand my position and accept my counter measures.
participants (2)
-
Sascha Ottolski -
Stefan Bund