nginx 80端口跳转到443

a. rewrite ^ https://$http_host$request_uri? permanent;

  b. rewrite ^/(.*)$ http://domain.com/$1 permanent;

  c. return 301 https://$server_name$request_uri;

 

posted @ 2021-10-02 23:24  规格严格-功夫到家  阅读(453)  评论(0编辑  收藏  举报