2 Star 5 Fork 1

Evan Wu/ngx-fancyindex-module

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
fancyindex.conf 1.27 KB
一键复制 编辑 原始数据 按行查看 历史
吴强强 提交于 2020-06-17 17:58 +08:00 . ngx-fancyindex-module
server{
listen 443 ssl http2 ;
server_name support.xxx.com;
root /opt/www/support/public; #指定目录所在路径
index index.html index.htm;
ssl_certificate /opt/www/support/cert/xxx.pem;
ssl_certificate_key /opt/www/support/cert/xxx.key;
ssl_session_timeout 5m;
access_log /opt/www/support/logs/access.log main;
error_log /opt/www/support/logs/error.log error;
location /downloads {
fancyindex on;
fancyindex_localtime on;
fancyindex_exact_size off;
fancyindex_header "/fancyindex/header.html";
fancyindex_footer "/fancyindex/footer.html";
fancyindex_ignore "fancyindex";
alias /opt/www/support/resources; #指定目录所在路径
autoindex on; #开启目录浏览
autoindex_format html; #以html风格将目录展示在浏览器中
autoindex_exact_size off; #切换为 off 后,以可读的方式显示文件大小,单位为 KB、MB 或者 GB
autoindex_localtime on; #以服务器的文件时间作为显示的时间
charset utf-8,gbk; #展示中文文件名
}
include /opt/www/support/nginx/*.conf;
}
server{
listen 80;
server_name support.xxx.com;
return 301 https://$host$request_uri;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/wupz/ngx-fancyindex-module.git
git@gitee.com:wupz/ngx-fancyindex-module.git
wupz
ngx-fancyindex-module
ngx-fancyindex-module
master

搜索帮助