handling x_forwarded_proto with Nginx as backend to HAproxy

Francis Daly francis at daoine.org
Mon Apr 15 21:42:30 UTC 2013


On Mon, Apr 15, 2013 at 05:35:27PM -0400, jaychris wrote:

Hi there,

>  I was using the X_FORWARDED_PROTO header to make some decisions on the
> backend when I was using Apache, but it doesn't look like Nginx is handling
> the header currently:
> 
> client sent invalid header line: "X_FORWARDED_PROTO: http" while reading
> client request headers,

"_" is not a valid character in a http header.

http://nginx.org/r/ignore_invalid_headers or maybe
http://nginx.org/r/underscores_in_headers

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list