if ($scheme = http) { return 301 https://$host$request_uri; }或者if ($server_port = 80) { return 301 https://$server_name$...