Welcome! Log In Create A New Profile

Advanced

Re: nginx rewrites $request_method on error

Yichun Zhang (agentzh)
May 15, 2014 03:22PM
Hello!

On Wed, May 14, 2014 at 11:19 PM, kay wrote:
> http {
> error_page 405 /error.html;
> error_page 400 /error.html;
> error_page 403 /error.html;
>

Okay, I can reproduce your request hang on my side now and I see what
is going on here.

Basically the 405 error is thrown so early in the processing flow of
your TRACE request within the nginx core that you cannot do
complicated processing like initiating a subrequest in your error page
target (because the request state has not been fully initialized).

Several suggestions:

1. prevent complicated logic (like subrequests and etc) in your error
page target location,

2. avoid using error_page directives in big scope as server {} or even
http {} because *every* location will inherit your error_page
configurations, including your location /memc for subrequests, which
can create an access dead loop.

Regards,
-agentzh

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

nginx rewrites $request_method on error

kay April 30, 2014 03:04AM

Re: nginx rewrites $request_method on error

kay April 30, 2014 03:21AM

Re: nginx rewrites $request_method on error

Maxim Dounin April 30, 2014 10:42AM

Re: nginx rewrites $request_method on error

kay May 06, 2014 05:58AM

Re: nginx rewrites $request_method on error

Yichun Zhang (agentzh) May 06, 2014 06:30PM

Re: nginx rewrites $request_method on error

kay May 07, 2014 02:30AM

Re: nginx rewrites $request_method on error

Yichun Zhang (agentzh) May 07, 2014 05:42PM

Re: nginx rewrites $request_method on error

kay May 07, 2014 11:59PM

Re: nginx rewrites $request_method on error

Yichun Zhang (agentzh) May 08, 2014 03:30PM

Re: nginx rewrites $request_method on error

kay May 14, 2014 02:52AM

Re: nginx rewrites $request_method on error

Yichun Zhang (agentzh) May 14, 2014 04:18PM

Re: nginx rewrites $request_method on error

kay May 15, 2014 02:19AM

Re: nginx rewrites $request_method on error

Yichun Zhang (agentzh) May 15, 2014 03:22PM

Re: nginx rewrites $request_method on error

kay May 16, 2014 02:56AM

Re: nginx rewrites $request_method on error

kay May 16, 2014 03:16AM

Re: nginx rewrites $request_method on error

Yichun Zhang (agentzh) May 16, 2014 04:28PM

Re: nginx rewrites $request_method on error

Maxim Dounin May 19, 2014 07:34AM

Re: nginx rewrites $request_method on error

Yichun Zhang (agentzh) May 19, 2014 02:50PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 149
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready