Welcome! Log In Create A New Profile

Advanced

Re: Nginx returning 414 even when large_client_header_buffers is set

April 10, 2012 04:26PM
> Most likely you are trying to configure
> client_header_buffer_size/large_client_header_buff
> ers in a pure
> virtual server{}. This won't work as request
> headers parsing
> happens before Host header is known (and virtual
> server is
> selected), hence parseing happens in a context of
> the default
> server for a listen socket.
>
> You have to configure
> client_header_buffer_size/large_client_header_buff
> ers
> in a default server (or at http level).
>

I tried to set it in the http context of the main /etc/nginx/nginx.conf file:

http {
large_client_header_buffers 8 512k;

...
include /etc/nginx/sites-enabled/*;
}

And my server contexts are defined in a conf file in sites-enabled. But large_client_header_buffers still appears to be ignored.
Subject Author Posted

Nginx returning 414 even when large_client_header_buffers is set

spacerobot April 09, 2012 09:28PM

Re: Nginx returning 414 even when large_client_header_buffers is set

spacerobot April 10, 2012 04:03PM

Re: Nginx returning 414 even when large_client_header_buffers is set

Maxim Dounin April 10, 2012 04:12PM

Re: Nginx returning 414 even when large_client_header_buffers is set

spacerobot April 10, 2012 04:26PM

Re: Nginx returning 414 even when large_client_header_buffers is set

spacerobot April 10, 2012 07:45PM

Re: Nginx returning 414 even when large_client_header_buffers is set

Maxim Dounin April 11, 2012 03:22AM

Re: Nginx returning 414 even when large_client_header_buffers is set

spacerobot April 11, 2012 07:09PM

Re: Nginx returning 414 even when large_client_header_buffers is set

ct323i February 11, 2014 12:22PM

Re: Nginx returning 414 even when large_client_header_buffers is set

Spencer Fu November 11, 2015 12:38PM

Re: Nginx returning 414 even when large_client_header_buffers is set

B.R. November 11, 2015 05:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 71
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready