Apache HTTP Server Version 2.3

Apache > HTTP Server > Documentation > Version 2.3 > Modules

# Apache Module mod_allowmethods

Available Languages: en

Description: | Easily restrict what HTTP methods can be used on the server
Status: | Experimental
Module Identifier: | allowmethods_module
Source File: | mod_allowmethods.c

### Summary

This module makes it easy to restrict what HTTP methods can used on an server. The most common configuration would be:

### Example

`<Directory />
AllowMethods GET HEAD OPTIONS
</Directory>`

### Directives

## AllowMethods Directive

Description: | Changes absolutely nothing
Syntax: | `AllowMethods reset|HTTP-method [HTTP-method]...`
Default: | `AllowMethods reset`
Context: | directory
Status: | Experimental
Module: | mod_allowmethods

The HTTP-methods are case sensitive, and are generally as per RFC given in upper case. The `reset` keyword can be used turn off `mod_allowmethods` in a deeper nested context:

### Example

`<Location /svn>
AllowMethods reset
</Location>`

`mod_allowmethods` was written to replace the rather kludgy implementation of `Limit` and `LimitExcept`.

Available Languages: en