firemail
标题: Windows下Nginx配置SSL实现Https访问 [打印本页]
作者: java 时间: 2018-3-13 18:48
标题: Windows下Nginx配置SSL实现Https访问
修改nginx.conf文件
nginx.conf文件位于:C:\wnmp\nginx\conf
找到该文件中如下代码的位置进行修改: 保证本机的端口不被占用 443 和 80
- # HTTPS server
- #
- server {
- listen 443 ssl;
- server_name www.chunhuitech.cn;
- ssl_certificate C:/nginx/nginx/ssl/1_www.chunhuitech.cn_bundle.crt;
- ssl_certificate_key C:/nginx/nginx/ssl/2_www.chunhuitech.cn.key;
- ssl_session_cache shared:SSL:1m;
- ssl_session_timeout 5m;
- ssl_ciphers HIGH:!aNULL:!MD5;
- ssl_prefer_server_ciphers on;
- location / {
- root html;
- index index.html index.htm;
- }
- }
复制代码
欢迎光临 firemail (http://firemail.wang:8088/) |
Powered by Discuz! X3 |