server { listen 80; listen [::]:80; server_name _; access_log off; rewrite ^ https://$host$request_uri? permanent; }