码迷,mamicode.com
首页 > Web开发 > 详细

Nginx Server 上80,443端口。http,https共存

时间:2018-02-24 13:17:06      阅读:504      评论:0      收藏:0      [点我收藏+]

标签:html   ring   aml   local   cal   共存   cer   相关   body   

server
{
listen 80;
listen 443 ssl;
server_name www.iamle.com;
index index.html index.htm index.php;
root /home/wwwroot/www.iamle.com/;
#ssl on; 这里要注释掉
ssl_certificate /usr/local/nginx/conf/ssl/www_iamle_com.crt;
ssl_certificate_key /usr/local/nginx/conf/ssl/www_iamle_com.key;

#以下配置省略...
}

相关链接:

http://nginx.org/en/docs/http/configuring_https_servers.html#single_http_https_server

https://www.iamle.com/archives/1231.html

Nginx Server 上80,443端口。http,https共存

标签:html   ring   aml   local   cal   共存   cer   相关   body   

原文地址:https://www.cnblogs.com/fuhai0815/p/8464832.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!