nginx rewrites $request_method on error

Maxim Dounin mdounin at mdounin.ru
Wed Apr 30 14:09:23 UTC 2014


Hello!

On Wed, Apr 30, 2014 at 03:04:11AM -0400, kay wrote:

[...]

> So it seems that error_page 405 /error.html rewrites $request_method

Yes, redirection a request to an error page implies changing the 
request method to GET (unless it's HEAD).  It's required to 
properly return error page.  Much like with URI change, this can 
be avoided by using a redirect to a named location instead.

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx mailing list