| 描述: | 轻松限制可以在服务器上使用的HTTP方法 |
|---|---|
| 状态: | 实验性 |
| 模块标识符: | allowmethods_module |
| 源文件: | mod_allowmethods.c |
| 兼容性: | 在Apache 2.3及更高版本中可用 |
通过此模块,可以轻松限制可以在服务器上使用的HTTP方法。最常见的配置是:
<Location "/"> AllowMethods GET POST OPTIONS </Location>
| 描述: | 限制对列出的HTTP方法的访问 |
|---|---|
| 句法: | AllowMethods reset|HTTP-method
[HTTP-method]... |
| 默认: | AllowMethods reset |
| 内容: | 目录 |
| 状态: | 实验性 |
| 模块: | mod_allowmethods |
HTTP方法区分大小写,并且按照RFC的规定,通常采用大写形式。GET和HEAD方法被视为等效。的reset关键字可以用于关闭mod_allowmethods在更深的嵌套上下文:
<Location "/svn"> AllowMethods reset </Location>
该模块无法拒绝TRACE方法;使用TraceEnable代替。
mod_allowmethods用来替代Limitand的
笨拙的实现LimitExcept。