Setting HTTPS on

Robert Leftwich robert at sherman.com.au
Sun Mar 4 11:18:26 MSK 2007


Roxis wrote:
> 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 
> uppercase)
> 
> if you realy need 'HTTPS' variable, you need to modify you backend
> 

Thanks.

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).

Robert





More information about the nginx mailing list