# acts as default server if there is no other. server { listen 80; listen [::]:80; server_name _redirect2ssl; return 302 https://$host$request_uri; }