linye521 大佬有话说 : 2020-1-13 23:32:38
咨询一下nginx反代问题,https问题
反代https可以,但是打开网站默认是8端口,这一个配置文件,怎么同时让他访问80端口,自动跳到443上面?
https://s2.ax1x.com/2020/01/13/lb9ZGQ.png
robot 大佬有话说 : 2020-1-13 23:34:05
百度 nginx http强制https 。解决
张小龙 大佬有话说 : 2020-1-13 23:34:21
301啊,大佬
etangren 大佬有话说 : 2020-1-13 23:35:51
if ($host ~ ‘^域名’){
return 301 https://域名$request_uri;
}