location / {
if ( $remote_addr ~* (127.0.0.1|10.0.1.[81-86]\d|172.31.31.[1-255]\d|192.168.44.44)) {
proxy_pass http://127.0.0.1:3333;
break;
}
nginx匹配一个网段
原创文章标签 centos nginx 匹配 网段 文章分类 Nginx 服务器
©著作权归作者所有:来自51CTO博客作者朱科强的原创作品,请联系作者获取转载授权,否则将追究法律责任

提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
C++ 模板匹配matchTemplate
C++ 模板匹配matchTemplate
opencv 模版匹配