Skip to content
This repository
Browse code

* Added missing map_block_http_methods.conf. Thx xfer.

  • Loading branch information...
commit 9c52ce015a95a30d4dad690e59c980b1b23f2942 1 parent fc3284e
António P. P. Almeida authored

Showing 1 changed file with 11 additions and 0 deletions. Show diff stats Hide diff stats

  1. +11 0 map_block_http_methods.conf
11 map_block_http_methods.conf
... ... @@ -0,0 +1,11 @@
  1 +# -*- mode: nginx; mode: flyspell-prog; ispell-local-dictionary: "american" -*-
  2 +
  3 +### This file contains a map directive that is used to block the
  4 +### invocation of HTTP methods. Out of the box it allows for HEAD, GET and POST.
  5 +
  6 +map $request_method $not_allowed_method {
  7 + default 1;
  8 + GET 0;
  9 + HEAD 0;
  10 + POST 0;
  11 +}

0 comments on commit 9c52ce0

Please sign in to comment.
Something went wrong with that request. Please try again.