欢迎来到ArchitecTang的博客

摘要: 网站需要对外网关闭,但是内部需要能够正常访问,在nginx上做如下配置: location / { root html; index index.html index.htm; if ( $remote_addr !~ "192.168.1.41") { 只允许192.168.1.41这个IP访问, 阅读全文
posted @ 2020-01-07 14:41 ArchitecTang 阅读(273) 评论(0) 推荐(0) 编辑