修改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;
- }
- }
复制代码
|