server { listen 80; server_name static.simponic.xyz; server_name simponic.xyz; location /.well-known/acme-challenge { root /var/www/letsencrypt; try_files $uri $uri/ =404; } location / { rewrite ^ https://simponic.xyz$request_uri? permanent; } }