From 5670db0822d8bc195b1a69c60f7dd6aef4d9a8ff Mon Sep 17 00:00:00 2001 From: Tait Hoyem Date: Mon, 23 Oct 2023 20:12:05 -0600 Subject: [PATCH] Fix subdomain basic example --- nginx/subdomain.conf | 4 ---- 1 file changed, 4 deletions(-) diff --git a/nginx/subdomain.conf b/nginx/subdomain.conf index 68724e5..49a6bbe 100644 --- a/nginx/subdomain.conf +++ b/nginx/subdomain.conf @@ -7,16 +7,12 @@ server { location / { try_files $uri $uri/; } -} -server { - root MY_ROOT; if ($host = DOMAIN) { return 301 https://$host$request_uri; } # managed by Certbot listen 80; listen [::]:80; - server_name DOMAIN; return 404; # managed by Certbot }