nginx设置跳转https

在监听80端口的内部,添加一句代码:rewrite ^(.*)$ https://$host$1 permanent;

原文地址:https://www.cnblogs.com/peipeiyu/p/11083403.html