Hi,
There is ngx_http_realip_module to have the real ip in nginx when you
are behind a load balancer
If the load balancer is also terminating the ssl, and connecting to
nginx with http, how to set the real proto ?
Thanks in advance
Etienne
Hi,
There is ngx_http_realip_module to have the real ip in nginx when you
are behind a load balancer
If the load balancer is also terminating the ssl, and connecting to
nginx with http, how to set the real proto ?
Thanks in advance
Etienne
On Apr 21, 2014, at 15:03 , [email protected] wrote:
Hi,
There is ngx_http_realip_module to have the real ip in nginx when you are behind
a load balancer
If the load balancer is also terminating the ssl, and connecting to nginx with
http, how to set the real proto ?
proxy_set_header X-Real-Proto $scheme;
–
Igor S.
hi
----- Mail original -----
name in any header,
but it is impossible to switch to this protocol at this phase.
I don’t want to switch protocol, I just want to change the content of
‘$scheme’, ‘$https’
like with ngx_http_realip_module, I want:
set_real_proto_from (like set_real_ip_from)
real_proto_header (like real_ip_header)
Is this “easy” to implement, or does this need big changes in nginx
code?
What’s the best way to do something similar (if, map, …)?
Thanks for your quick answers, and thanks in advance.
Etienne
On Apr 21, 2014, at 15:47 , Igor S. wrote:
On Apr 21, 2014, at 15:03 , [email protected] wrote:
Hi,
There is ngx_http_realip_module to have the real ip in nginx when you are
behind a load balancer
If the load balancer is also terminating the ssl, and connecting to nginx with
http, how to set the real proto ?proxy_set_header X-Real-Proto $scheme;
Sorry, misread your question. A load balancer can set any protocol name
in any header,
but it is impossible to switch to this protocol at this phase.
–
Igor S.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs