Hello so I got this default file
server { listen 80 default_server; listen 443 default_server; listen [::]:80 default_server; listen [::]:443 default_server; server_name _; return 444; } This catches everything... in the same folder (sites-enabled) I got my domain.com file
server { listen 80; server_name my.domain.com; location /.well-known/acme-challenge { default_type "text/plain"; root /storage/webserver/certbot; } #Forces all other requests to HTTPS location / { return 301 https://$host$request_uri; } } server { listen 443 ssl http2; server_name my.domain.com; ## SSL STUFF ## root /path/to/root; index index.html index.php; location / { try_files $uri $uri/ $uri.html; } ### Site config } If I leave the default disabled (removed) and go to my.domain.com I see my page. now if I add the default file I get a 444 from Nginx(Closed). Why..?
EDIT: After some testing I found the issue to be the listen 443 default_server; part it catches every https request, why?? I have a block with my domain and listen 443!