Welcome! Log In Create A New Profile

Advanced

Re: X-Real-Proto ?

Anonymous User
April 22, 2014 11:08AM
hi

----- Mail original -----
> De: "Igor Sysoev" <igor@sysoev.ru>
> À: nginx@nginx.org
> Envoyé: Lundi 21 Avril 2014 13:56:41
> Objet: Re: X-Real-Proto ?
>
> On Apr 21, 2014, at 15:47 , Igor Sysoev wrote:
>
> > On Apr 21, 2014, at 15:03 , etienne.champetier@free.fr 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;
> >
> > http://nginx.org/r/$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.
>

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

>
> --
> Igor Sysoev
> http://nginx.com

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

X-Real-Proto ?

Anonymous User April 21, 2014 07:06AM

Re: X-Real-Proto ?

Igor Sysoev April 21, 2014 07:48AM

Re: X-Real-Proto ?

Igor Sysoev April 21, 2014 07:58AM

Re: X-Real-Proto ?

Anonymous User April 22, 2014 11:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 184
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready