<-
Apache > HTTP Server > Documentation > Modules

Apache Module mod_allowmethods 145mj

Available Languages:  fr 

Description: Easily restrict what HTTP methods can be used on the server
Status: Experimental
Module Identifier: allowmethods_module
Source File: mod_allowmethods.c
Compatibility: Available in Apache 2.3 and later

Summary 6m2os

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

<Location "/">
   AllowMethods GET POST OPTIONS
</Location>
 Apache!

Directives 1a4l6m

Bugfix checklist 4i2533

See also 27136x

top

AllowMethods Directive 693h2p

Description: Restrict access to the listed HTTP methods
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 GET and HEAD methods are treated as equivalent. The reset keyword can be used to turn off mod_allowmethods in a deeper nested context:

<Location "/svn">
   AllowMethods reset
</Location>

Caution 3y6e8

The TRACE method cannot be denied by this module; use TraceEnable instead.

LimitExcept.

Available Languages:  fr 

top

Comments 2p1l6j

Notice:
This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed by our s if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Libera.chat, or sent to our mailing lists.