Re: [Web-SIG] Reverse Proxy & HTTPS

2009-04-06 Thread Ian Bicking
A last note: paste.deploy.config.PrefixMiddleware does some fixup for cases like this, including looking at X-Forwarded-Scheme and X-Forwarded-Proto for the protocol (both names, because there's nothing approaching consensus on what to name these headers). 2009/4/6 Randy Syring > Graham, > > E

Re: [Web-SIG] Reverse Proxy & HTTPS

2009-04-06 Thread Randy Syring
Graham, Excellent, thank you! That confirms for me the concept is correct, now all I have to do is work on an IIS implementation. FUN! -- Randy Syring RCS Computers & Web Solutions 502-644-4776 http://www.rcs-comp.com "Whether, then, you eat or drink or

Re: [Web-SIG] Reverse Proxy & HTTPS

2009-04-06 Thread Graham Dumpleton
Using nginx as front end to Apache/mod_wsgi as an example: On nginx side you would use: proxy_set_header X-Url-Scheme $scheme; and on Apache/mod_wsgi side, with Django 1.0 as an example, in WSGI script file we would have: import os, sys sys.path.append('/usr/local/django') os.environ['

Re: [Web-SIG] Reverse Proxy & HTTPS

2009-04-06 Thread Paweł Stradomski
W liście Randy Syring z dnia poniedziałek, 6 kwietnia 2009: > I would like my application to have control over the HTTPS<->HTTP > redirects and would rather not force that logic into the forward facing > web server if at all possible. That just seems like an extra > configuration step that wouldn

Re: [Web-SIG] Reverse Proxy & HTTPS

2009-04-06 Thread Randy Syring
Cameron Simpson wrote: On 04Apr2009 16:08, Randy Syring wrote: How tightly knit is the IIS i.e. do you have control over it? Maybe this rewrite thing should be set up in IIS instead, it seems the more obvious place for such control except that the rewrite config would no longer be "part of

Re: [Web-SIG] Python 3.0 and WSGI 1.0.

2009-04-06 Thread Sylvain Hellegouarch
Probably of interest in regards to this discussion: http://lists.w3.org/Archives/Public/ietf-http-wg/2009AprJun/0057.html http://trac.tools.ietf.org/wg/httpbis/trac/ticket/63 This applies to headers but probably shows that RFC 2047 is gradually ruled out of HTTP. - Sylvain -- Sylvain Hellegouar