nginx 时区设置 修改为本地时间

/etc/nginx/sites-available/default

location中添加autoindex_localtime on;

复制代码
server {
        listen 80 default_server;
        root /var/www/;
        # Add index.php to the list if you are using PHP
        index index.html index.htm index.nginx-debian.html;
        server_name _;

        location / {
                try_files $uri $uri/ =404;
                autoindex_localtime on;
        }
}
复制代码

sudo /etc/init.d/nginx restart

posted @   船长博客  阅读(3205)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· .NET10 - 预览版1新功能体验(一)
历史上的今天:
2019-04-01 C调用Lua中的函数解析table
2017-04-01 Ubuntu16.04安装xampp及部署Testlink
永远相信美好的事情即将发生!
点击右上角即可分享
微信分享提示