NGINX http 强转 https

at 4年前  ca Nginx  pv 1668  by touch  

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

service nginx reload


版权声明

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

 

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

冀ICP备14009681号-2 Powered By 码农殇 Theme By zb脚本
您是本站第975名访客 今日有0篇新文章