Why sending non-GET, POST, HEAD headers to nginx, 405 Not Allowed is returned.

Send non-GET, POST, HEAD headers (e.g. PUT, PATCH requests) to nginx if the return status code is http 405 method Not Allowed,

this is usually returned when sending a request to the root directory, i.e. “/”, or when sending a request to a static HTML page, 405 Not Allowed.

Sending a request to a dynamic URL, such as a PHP page, does not return a 405 Not Allowed.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *