Nginx block URL with special character

后端 未结 0 1239
情深已故
情深已故 2021-01-13 02:21

im trying to block URL https://1.1.1.1/~admin/ with nginx location

 }
 location ~* ~admin/ {
 deny all;
 return 403;
 }


 }
 location ^~ ~admin/ {
 deny all;         


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