nginx http页面重定向到https页面最新支持的写法

server {
    listen      80;
    server_name    my.domain.com;
    return      301 https://$server_name$request_uri;
}

server {
    listen      443 ssl;
    server_name    my.domain.com;

    [....]
}


上一篇: CentOS 命令
下一篇: php $_SERVER中的SERVER_NAME 和HTTP_HOST的区别
文章来自: 本站原创
引用通告: 查看所有引用 | 我要引用此文章
Tags:
相关日志:
评论: 9 | 引用: 0 | 查看次数: 382
Winfred[2017-01-08 08:05 AM | | Mail To:winfred_tims@gmail.com | 104.144.53.107 | del | 回复回复]
9#
In addition, rubbing your eyes may distribute the illness in one attention towards other individuals, or even to the different.
Stella[2017-01-02 01:05 PM | | Mail To:stella_courtois@googlemail.com | 77.120.224.86 | del | 回复回复]
8#
Thanks realⅼy practical. Will certаinly share site ѡith my buddies.
Dianna[2016-12-23 07:17 PM | | Mail To:diannasimonson@the-quickest.com | 49.140.136.196 | del | 回复回复]
7#
Great ⅼooking site. Assume yoս dіԀ a grеat deal of yoᥙr oաn coding.
Porter[2016-12-13 08:08 AM | | Mail To:portereyler@gmail.com | 198.46.222.243 | del | 回复回复]
6#
Hi there, just became alert to your blog through Google, and found that it is truly informative.

I am gonna watch out for brussels. I?ll be grateful if you continue this in future. Lots of people will be benefited from your writing. Cheers!
Kenneth[2016-12-03 01:22 AM | | Mail To:kenneth.mclean@gmx.net | 45.56.77.45 | del | 回复回复]
5#
Gгeat internet site! It lоoks extremely expert!

Maintain tһe excellent ԝork!
Dominik[2016-12-02 09:38 AM | | Mail To:dominiklashley@gmail.com | 162.212.169.68 | del | 回复回复]
4#
Great internet website! It looks very good! Maintain the great work!
Will[2016-11-23 01:13 AM | | Mail To:willramsbotham@googlemail.com | 107.174.143.98 | del | 回复回复]
地板
You have very good information in this article.
Annetta[2016-11-22 09:26 AM | | Mail To:annettakrichauff@gmail.com | 149.202.26.83 | del | 回复回复]
板凳
Great internet site! It looks really expert! Sustain the excellent job!
Jenifer[2016-11-20 10:15 PM | | Mail To:jenifermccombie@googlemail.com | 221.214.208.226 | del | 回复回复]
沙发
I adore this website - its so usefull and helpfull.
发表评论
昵 称:
密 码: 游客发言不需要密码.
邮 箱: 邮件地址支持Gravatar头像,邮箱地址不会公开.
网 址: 输入网址便于回访.
内 容:
验证码:
选 项:
虽然发表评论不用注册,但是为了保护您的发言权,建议您注册帐号.
字数限制 1000 字 | UBB代码 开启 | [img]标签 关闭