Welcome! Log In Create A New Profile

Advanced

Re: Custom page for 400 (Bad Request)

Maxim Dounin
December 14, 2010 12:16PM
Hello!

On Tue, Dec 14, 2010 at 10:16:11AM -0500, Denis wrote:

> I have a decent number of hits with very large cookies. It was a bug of
> our application and it's fixed now, but we have to do something with
> these clients, because all they are seeing now is the standard 400 Bad
> Request page. I tried adding
>
> [code]
> error_page 400 /errors/400.html;
> [/code]
>
> hoping that I would delete the cookies by javascript or some other way,
> but I still get the standard page and connection reset.
>
> Is there any way to override that or is there any other way to flush
> those huge cookies?

This should be added to default server, as error 400 is generated
before any server_name matching occurs.

Note that you may also bump client_header_buffer_size /
large_client_header_buffers if you want cookies in question to be
actually accepted and processed (this should be done in default
server, too, or at http level).

http://wiki.nginx.org/HttpCoreModule#large_client_header_buffers

Maxim Dounin

_______________________________________________
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: 183
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