nginx 强制https

server那点事

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

发表于 2018.12.24