当访问的url中含有/%df时返回404

 location / {
         if ($request_uri ~* "/%df") {
         #   return 200 "error";
             return 404;
         }
         proxy_pass http://127.0.0.1:80/;
         proxy_set_header Host $host;
         proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
   #     index index.html index.htm;
  }

  

相关文章:

  • 2021-09-11
  • 2021-12-04
  • 2021-08-14
  • 2022-12-23
  • 2021-12-20
  • 2021-06-12
  • 2021-09-17
猜你喜欢
  • 2021-11-09
  • 2022-12-23
  • 2022-12-23
  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
相关资源
相似解决方案