Nginx如何限制IP访问

在access访问阶段处理IP限制

--without-http_access_module 禁用模块

默认编译进nginx

 

allow 指令 允许访问IP

syntax: allow address | CIDR | unix: | all ;

default: --

content: http,server,location,limit_except

 

deny 指令 允许访问IP 

syntax: allow address | CIDR | unix: | all ;

default: --

content: http,server,location,limit_except

 

猜你喜欢

转载自www.cnblogs.com/jackey2015/p/10374140.html
0条评论
添加一条新回复