Skip to content

Instantly share code, notes, and snippets.

@berryp
Created September 14, 2011 19:17
Show Gist options
  • Select an option

  • Save berryp/1217500 to your computer and use it in GitHub Desktop.

Select an option

Save berryp/1217500 to your computer and use it in GitHub Desktop.
NGINX config to control access based on HTTP method
if ($request_method = POST ) {
return 405;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment