一行配置美化 nginx 目录 autoindex.html


demo🚀

安装

参考🚀

  1. 配置 autoindex.html ⏬
    在 nginx autoindex 指令下面添加 add_after_body /autoindex.html; 然后重启 nginx 即可

  2. 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;
}


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM