server { listen 80 default_server; listen [::]:80 default_server; include snippets/acme.conf; include snippets/common.conf; root /var/www/html; index index.html index.htm index.nginx-debian.html; server_name _; location / { try_files $uri $uri/ =404; return 301 https://$host$request_uri; } }