# 根目录(静态 HTML 站点)
root /www/wwwroot/x.com;
index index.html index.htm default.html default.htm;
autoindex on; # 启用目录列表
autoindex_exact_size off; # 显示人类可读的文件大小
autoindex_format html; # 以 HTML 方式渲染列表
autoindex_localtime on; # 显示本地时间
charset utf-8; # 让 Nginx 正确解析中文和日文
add_header Content-Disposition inline; # 让浏览器直接播放
add_header Accept-Ranges bytes; # 允许拖动进度条
add_header Access-Control-Allow-Origin *; # 允许跨域访问(可选)
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
