Nginx 配置 HTTP 跳转 HTTPS

参考文献:Configuring HTTPS servers,还是官方 Document 比较靠谱。

然后添加一个跳转判断即可:

 

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.