一行配置美化 nginx 目录 autoindex.html
demo????
安装
在 nginx autoindex 指令下面添加 add_after_body /autoindex.html; 然后重启 nginx 即可
add_after_body
# download autoindex.html to /wwwroot/
location ~ ^(.*)/$ {
charset utf-8;
autoindex on;
autoindex_localtime on;
autoindex_exact_size off;
add_after_body /autoindex.html;
}
- 上一篇 »HTML可不可以美化网页
- 下一篇 »linux 下升级nginx