Created
July 2, 2014 13:32
-
-
Save michiel/2e39bae4f6847d4a7b08 to your computer and use it in GitHub Desktop.
nginx method filter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map $request_method $not_allowed_method { | |
default 1; | |
GET 0; | |
HEAD 0; | |
POST 0; | |
} | |
if ($not_allowed_method) { | |
return 405; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment