美文网首页
Nginx 如何限定IP访问

Nginx 如何限定IP访问

作者: samcao | 来源:发表于2015-06-15 09:55 被阅读0次
在nginx.conf中的server限制段中.deny IP.表示需要限制该IP不可访问.allow IP表示权该IP可以访问.


如上图.表示阻止192.168.1.122的IP的访问.那当然也可以编辑成192.168.1.1/24网段.

相关文章

网友评论

      本文标题:Nginx 如何限定IP访问

      本文链接:https://www.haomeiwen.com/subject/dsxsqttx.html