nginx图片服务器,因为图片的敏感度,不允许直接访问图片的目录:

nginx关闭目录浏览功能

 

需要修改配置文件,去掉 autoindex on; 重启nginx即可

location /soft {

  #autoindex on;#去掉这一行内容

  autoindex_exact_size off;

  autoindex_localtime on;
}

nginx关闭目录浏览功能

 

相关文章:

  • 2022-01-15
  • 2021-08-12
  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
  • 2021-11-15
  • 2022-12-23
  • 2021-07-10
猜你喜欢
  • 2022-12-23
  • 2022-01-29
  • 2022-12-23
  • 2022-12-23
  • 2022-01-13
  • 2021-12-20
  • 2021-09-02
相关资源
相似解决方案