首页 > Web开发 > 详细

nginx配置https转发的一个例子

时间:2017-10-18 19:03:43      阅读:221      评论:0      收藏:0      [点我收藏+]
server {
        listen      443;
    #https默认端口不是80,而是443 server_name www.test.com; ssl on; ssl_certificate cert
/2142977640231.pem; ssl_certificate_key cert/2142977640231.key; ssl_session_timeout 5m; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_prefer_server_ciphers on; location / { proxy_pass http://192.168.97.5:9888; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection keep-alive; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } }

 

nginx配置https转发的一个例子

原文:http://www.cnblogs.com/IWings/p/7688215.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!