server { listen 80 default_server; server_name _; rewrite ^ https://$host$request_uri? permanent; }