server { listen 80; // port to listen on server_name <server_name>; // port to return/redirect to: return 443 https://$server_name$request_uri; }