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/ _______________________________________________ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-devel