禁止访问功能配置

    nginx.conf中的http{}中的server{}的location ..{}中:

     location / { 

        #拒绝访问,192.168.16.0网段的同学都无法访问 /24是子网掩码的意思 

        deny 192.168.16.0/24; 

        root     html; 

        index     index.html index.htm; 

      }

404页面

    nginx.conf中的http{}中的server{}中:

       #error_page 404 /404.html;

相关文章:

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