http强制转换https

Nginx

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

 

posted @ 2020-07-20 11:47  suminem  阅读(262)  评论(0编辑  收藏  举报