On 9/02/2015 23:54, Jonathan Biegert wrote:
$ nc -l 61282
GET / HTTP/1.1
Host: localhost:61282
... (User-Agent etc)
X-Forwarded-HTTPS: on
X-Forwarded-Port: 443
X-SSL-cipher: DHE-RSA-AES256-SHA SSLv3 Kx=DH Au=RSA Enc=AES(256)
Mac=SHA1
X-Forwarded-For: 37.201.193.172, 37.201.193.172
X-Forwarded-Host: qrdn.musca.uberspace.de
X-Forwarded-Server: qrdn.musca.uberspace.de
Connection: Keep-Alive
All documentation I could find about gunicorn is heavily tied to nginx,
so perhaps apache is setting different X-Forward* Headers I might
emulate with RequestHeader set ...?
Indeed. Ideally you will want the Host header to give the
publicly-visible hostname (it looks like apache is putting this in
X-Forwarded-Host) and the X-Forwarded-Proto header to be "https".
It doesn't look like gunicorn has support for any of the headers being
sent by apache.
Ryan
_______________________________________________
Sync-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/sync-dev