Welcome! Log In Create A New Profile

Advanced

Re: Custom page for 400 (Bad Request)

December 15, 2010 07:12AM
On Wed, Dec 15, 2010 at 01:57:58PM +0200, Eugaia wrote:

> Hi,
>
> On 15/12/2010 13:50, Igor Sysoev wrote:
> > Yes, mention of "cookie" is useful here, since this is the main cause
> > of these errors. "Header line or cookie too big". I use "line"
> > because nginx has another couse of 400 error: large header.
> > "Header line is too long" is logged when a single line of client header
> > is bigger than a buffer in large_client_header_buffers.
> > "Header is too large" is logged when sum of all header lines are bigger
> > than client_header_buffer_size plus large_client_header_buffers.
> Is this for a single header, all the headers or either?

I have looked in the sources.
"client sent too large request" is logged if all request headers can not
be read in client_header_buffer_size plus large_client_header_buffers.
"client sent too long header line: "...." is logged if a single header line
does not fit in a buffer of large_client_header_buffers.

> It might be
> useful to have 'Headers too large' if more than a single header is
> included in the calculation.
> > Probably this reason should cause 494 error too. And the resulting
> > message should be as you have suggested: "Request header or cookie too big".
> Sounds good to me.

The current edition is "Request header or cookie too large".

> It might also be useful to specify 'Cookie too large' in the log file,
> if it is the cookie that is too large.

The header line name and about 1800 value charecters are logged.


--
Igor Sysoev
http://sysoev.ru/en/

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

Custom page for 400 (Bad Request)

Denis December 14, 2010 10:16AM

Re: Custom page for 400 (Bad Request)

Maxim Dounin December 14, 2010 12:16PM

Re: Custom page for 400 (Bad Request)

Denis December 14, 2010 12:33PM

Re: Custom page for 400 (Bad Request)

Igor Sysoev December 14, 2010 05:40PM

Re: Custom page for 400 (Bad Request)

Igor Sysoev December 14, 2010 05:44PM

Re: Custom page for 400 (Bad Request)

Igor Sysoev December 14, 2010 06:38PM

Re: Custom page for 400 (Bad Request)

Eugaia December 15, 2010 06:28AM

Re: Custom page for 400 (Bad Request)

Igor Sysoev December 15, 2010 06:40AM

Re: Custom page for 400 (Bad Request)

Igor Sysoev December 15, 2010 06:44AM

Re: Custom page for 400 (Bad Request)

Eugaia December 15, 2010 06:46AM

Re: Custom page for 400 (Bad Request)

Igor Sysoev December 15, 2010 06:54AM

Re: Custom page for 400 (Bad Request)

Eugaia December 15, 2010 07:02AM

Re: Custom page for 400 (Bad Request)

Igor Sysoev December 15, 2010 07:12AM

Re: Custom page for 400 (Bad Request)

Igor Sysoev December 15, 2010 08:44AM

Re: Custom page for 400 (Bad Request)

Denis December 15, 2010 04:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 224
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready