Nginx 浏览目录配置与美化
类似Nginx添加RTMP模块,再添加Fancy Index模块。下载FancyIndex主题,移动到nginx服务器的根目录
配置文件中写
bash
location /download {
include /var/www/blog/Nginx-Fancyindex-Theme/fancyindex.conf;
root /usr/local/cloudtorrent/downloads;
autoindex on;
autoindex_format html;
autoindex_exact_size off;
autoindex_localtime on;
charset utf-8,gbk;
}
重启nginx服务。