[PATCH]add proxy_protocol_port variable for rfc6302
Maxim Dounin
mdounin at mdounin.ru
Mon Apr 4 15:30:57 UTC 2016
Hello!
On Sat, Apr 02, 2016 at 10:48:42PM +0900, junpei yoshino wrote:
> Hi
>
> I wrote additional patch.
> support port information in realip module.
>
> if you use "real_port_header X-Forwarded-Port;"
> or "real_port_header proxy_protocol;",
> $remote_port and $realip_remote_port are replaced.
I don't think that X-Forwarded-Port is a good idea:
- where seen, it's used for other purposes - to indicate _server_
port of a load balancer, not client port;
- it should be easily possible to use the same header to pass to
both addresses and ports; this is how it is defined in RFC
7239 for the Forwarded header, and we can use something similar at
least for custom headers.
--
Maxim Dounin
http://nginx.org/
More information about the nginx-devel
mailing list