<-
Apache > HTTP Server > 文件 > 版本 2.4 > 模組

Apache 模組 mod_allowmethods

可用語言:  en  |  fr 

說明輕鬆限制伺服器上可以使用的 HTTP 方法
狀態實驗
模組識別allowmethods_module
原始檔mod_allowmethods.c
相容性Apache 2.3 及後續版本均可用

摘要

此模組讓限制伺服器上可以使用的 HTTP 方法變得更加容易。最常見的設定為

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

指令

錯誤修正檢查表

另請參閱

top

AllowMethods 指令

說明限制存取已列出的 HTTP 方法
語法AllowMethods 重設|HTTP 方法 [HTTP 方法]...
預設AllowMethods 重設
內容目錄
狀態實驗
模組mod_allowmethods

HTTP 方法區分大小寫,且通常根據 RFC 以大寫表示。GET 和 HEAD 方法視為等同。重設關鍵字可用於在更深入的巢狀內容中關閉 mod_allowmethods

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

注意事項

此模組無法拒絕 TRACE 方法;請改用 TraceEnable

mod_allowmethods 是為取代 LimitLimitExcept 的笨拙執行方式而撰寫的。

可用語言:  en  |  fr 

top

留言

注意
這並非問與答部分。放置在此的留言應針對改善文件或伺服器的建議,且若這些建議已執行或被視為無效/離題,我們的管理員可能會將其移除。有關如何管理 Apache HTTP Server 的問題應轉到我們的 IRC 頻道,#httpd(在 Libera.chat 上),或傳送至我們的 郵寄清單