Skip to content

Instantly share code, notes, and snippets.

@michiel
Created July 2, 2014 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michiel/2e39bae4f6847d4a7b08 to your computer and use it in GitHub Desktop.
Save michiel/2e39bae4f6847d4a7b08 to your computer and use it in GitHub Desktop.
nginx method filter
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