4 Mar 2007 09:18
Re: Setting HTTPS on
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
RSS Feed