代码拉取完成,页面将自动刷新
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;
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。