一台nginx服务器开了目录浏览功能。方便下载文件。使用时发现,目录内的文件,创建时间比实际时间少8小时。


查看官方文档:http://nginx.org/en/docs/http/ngx_http_autoindex_module.html  ,找到这个:autoindex_localtime,作用:是否用本地时间显示时间。默认:否,使用UTC时间。

设置 autoindex_localtime on 问题解决。



原文地址:Nginx目录遍历功能时间相差8小时
标签:nginx   autoindex_localtime   autoindex   

智能推荐

相关文章:

  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-21
  • 2022-12-23
  • 2021-06-21
  • 2021-06-10
  • 2021-08-26
相关资源
相似解决方案