Loading...
This site is best viewed in a modern browser with JavaScript enabled.
Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error.
关于HTTP限制请求方法
68813671
请问,限制HTTP请求方法只能用limit_except 在每个location中做限制吗?有没有统一的设定方法,比如我想限制服务器只接收GET方法。
yuansheng
On Mon, Feb 6, 2017 at 12:38 PM, 时光漫步
<
688...@qq.com
>
wrote:
请问,限制HTTP请求方法只能用limit_except 在每个location中做限制吗?有没有统一的设定方法,
比如我想限制服务器只接收GET方法。
可以在 server config 中使用 access_by_lua 统一处理。
--
--
YuanSheng Wang
---------------------------------------
My Github:
https://github.com/membphis
OpenResty lover ^_^