Permalink
Browse files

* Added missing map_block_http_methods.conf. Thx xfer.

  • Loading branch information...
1 parent fc3284e commit 9c52ce015a95a30d4dad690e59c980b1b23f2942 @perusio committed Apr 21, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 map_block_http_methods.conf
View
11 map_block_http_methods.conf
@@ -0,0 +1,11 @@
+# -*- mode: nginx; mode: flyspell-prog; ispell-local-dictionary: "american" -*-
+
+### This file contains a map directive that is used to block the
+### invocation of HTTP methods. Out of the box it allows for HEAD, GET and POST.
+
+map $request_method $not_allowed_method {
+ default 1;
+ GET 0;
+ HEAD 0;
+ POST 0;
+}

0 comments on commit 9c52ce0

Please sign in to comment.