2019年12月5日

Nginx 配置https

摘要: 1、准备好网站域名的https证书,后缀名如下,上传到服务器上。 xxx.pem xxx.key 2、配置nginx.conf server { listen 443 ssl; server_name scm.xxx.com; ssl on; ssl_certificate ./cert/cert. 阅读全文

posted @ 2019-12-05 17:41 滚动的蛋 阅读(444) 评论(0) 推荐(0) 编辑

Nginx 配置访问静态资源

摘要: 做个简单的配置: 以txt/png/mp4结尾的请求都会按照如下规则寻找返回文件 关键词: location、root location ~ \.(mp4|png|txt) { root /usr/local/tomcat9/webapps/scm; autoindex on; } 主义root代表 阅读全文

posted @ 2019-12-05 17:28 滚动的蛋 阅读(2590) 评论(0) 推荐(0) 编辑

导航