一行配置美化 nginx 目录 autoindex.html
demo🚀
安装
-
配置 autoindex.html ⏬
在 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;
}