NGINX http 强转 https

at 3年前  ca Nginx  pv 1092  by touch  

if ($scheme = http ) {
    return 301 https://$host$request_uri;
}

service nginx reload


版权声明

本文仅代表作者观点,不代表码农殇立场。
本文系作者授权码农殇发表,未经许可,不得转载。

 

扫一扫在手机阅读、分享本文

已有0条评论