安装

一行配置美化-nginx-目录成-github-风格

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

标签: none