後端tomcat不開啓https,用nginx反向代理使網站同時支持http和https協議總結

網站架構以下:php 一、修改nginx配置文件,註釋處都是修改要注意的地方html         listen 80;         listen 443 ssl;#添加ssl支持         server_name localhost;         #ssl on;#不要開啓,不然只能用https,訪問http會報ngi
相關文章
相關標籤/搜索