在相应的 server 配置中最后写:
return 301 https://$server_name$request_uri;
使用 301 跳转
转自:https://www.cnblogs.com/xth0331/p/9655576.html
原文:https://www.cnblogs.com/xwgli/p/12781634.html
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!
在相应的 server 配置中最后写:
return 301 https://$server_name$request_uri;
使用 301 跳转
转自:https://www.cnblogs.com/xth0331/p/9655576.html
原文:https://www.cnblogs.com/xwgli/p/12781634.html