HTTP core directives
limit_except directive
location context; applies nested access restrictions to methods other than the listed ones; GET also includes HEAD.
Formal Syntax & Structure
nginx syntaxnginx
limit_except method ... { ... }Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| method | HTTP method (one or more) | Methods exempt from the enclosed access rules; listing GET also exempts HEAD. |
Working Example
Example Snippetnginx
limit_except GET { deny all; }