Setting HTTPS on

Wayne E. Seguin wayneeseguin at gmail.com
Fri Mar 2 14:49:12 MSK 2007


Robert,

Try proxy_set_header as follows:

server {
   ...
   location / {
      ...
      proxy_set_header X-FORWARDED_PROTO https;
      ...
   }
}

Does this help?

   ~Wayne

On Mar 02, 2007, at 04:37 , Robert Leftwich wrote:

> I'm changing a nginx/fastcgi setup to use the proxy module but have  
> hit
> a small problem. The framework behind the proxy needs the environment
> variable HTTPS set to on if the the original request was https.  
> This was
> possible in the fastcgi setup using "fastcgi_param  HTTPS on;", but I
> cannot find an equivalent in the proxy section (proxy_set_header  
> appends
> HTTP_ to the param name). Is there an equivalent to fastcgi_param  
> in the
> proxy module?
>
> Robert
>






More information about the nginx mailing list