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;
}
转载于:https://blog.51cto.com/zhukeqiang/1867547