Nginx restricting access by machine name instead of IP address

后端 未结 0 907
青春惊慌失措
青春惊慌失措 2020-12-08 01:51

I use nginx with simple auth rules such as the following:

location /api {
    #...
    deny  192.168.1.2;
    allow 10.128.99.1;
    allow 127.0.0.1;
    deny         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题