Nginx 站点目录列表显示。

可以编辑添加在 server { } 模块 或者 location { } 模块下。

autoindex on;  # 开启目录文件列表
autoindex_exact_size on;  # 显示出文件的确切大小,单位是bytes
autoindex_localtime on;  # 显示的文件时间为文件的服务器时间
charset utf-8,gbk,gb2312;  # 避免中文乱码

add_header Content-Disposition attachment;  # 文件下载。

 

相关文章:

  • 2021-07-18
  • 2021-07-06
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-12
猜你喜欢
  • 2022-02-18
  • 2022-12-23
  • 2021-07-10
  • 2021-11-27
  • 2021-10-13
  • 2022-12-23
相关资源
相似解决方案