Skip to content

Commit

Permalink
* Added missing map_block_http_methods.conf. Thx xfer.
Browse files Browse the repository at this point in the history
  • Loading branch information
António P. P. Almeida committed Apr 21, 2012
1 parent fc3284e commit 9c52ce0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions 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.