Setting HTTPS on
robert at sherman.com.au
Sun Mar 4 11:18:26 MSK 2007
> there is no way to set an environment variable from proxy (like nginx).
> you can only add/modify headers and _your backend_ will set
> environment variables based on them (adding 'HTTP_' prefix and make it
> if you realy need 'HTTPS' variable, you need to modify you backend
I ended up writing a piece of wrapper code to set HTTPS if
HTTP_X_FORWARDED_PROTO is set to https (using Ruby/Rails as the basis).
More information about the nginx