/ Zope / Apsis / Pound Mailing List / Archive / 2004 / 2004-05 / Zope-2.7 both http and https in parallel?

[ << ] [ >> ]

[ pound and kupu / Joachim Schmitz ... ] [ Re: Zope-2.7 both http and https in parallel? ... ]

Zope-2.7 both http and https in parallel?
Sascha Ottolski <sascha.ottolski(at)gallileus.de>
2004-05-06 15:54:25 [ FULL ]
Hi,

maybe I'm blind, but I can't make it working. I've seen the hints to put

<cgi-environment>
  HTTPS ON
</cgi-environment>

into zope.conf. This works, but that doesn't distinguish beetwenn 
different ports. That ist, even plain http-request will return URLs 
with "https" als the protocol.

It is quite easy to start to different http-server on different ports, 
like

<http-server>
  address 80
</http-server>

<http-server>
  address 443
</http-server>

Now the missing piece is, to add the "HTTPS ON" Header only for request 
to port 443. As far as I understand, pound can't do this.

BTW, you cannot distinguish http and https requests in the regex for an 
UrlGroup, right?


Thanks, Sascha
[...]

Re: Zope-2.7 both http and https in parallel?
Robert Segall <roseg(at)apsis.ch>
2004-05-06 18:05:28 [ FULL ]
On Thu, 2004-05-06 at 15:54, Sascha Ottolski wrote:[...]

We haven't looked closely at 2.7 yet, but here are a few possibilities
to try out:

- if 2.7 honours the "Https: On" header in requests (the way OWA does)
then it is easy to add that header only to HTTPS requests in Pound. See
the README for details.

- failing that I would look again at the 2.7 config - could it be that
the directives can be nested?

- as a last instance: start two ZEO clients, one for HTTP and one for
HTTPS. Run two Pound instances. Ugly, but guaranteed to work...

I won't even start on the possibility of using 2.6 with the existing
patch.[...]

MailBoxer