修改配置文件
http {
...
allow xx.xx.xx.xx;
allow xx.xx.xx.xx;
deny all;
...
}
server {
...
allow xx.xx.xx.xx;
allow xx.xx.xx.xx;
deny all;
...
}
location / {
allow xx.xx.xx.xx;
allow xx.xx.xx.xx;
deny all;
}
加载Nginx配置
nginx -s reload