fixed fallback behavior

This commit is contained in:
Bryan Ramos 2026-03-12 04:59:23 -04:00
parent 52bea0cbeb
commit 2f34d995df

View file

@ -35,6 +35,16 @@ in
recommendedGzipSettings = true; recommendedGzipSettings = true;
eventsConfig = "worker_connections 4096;"; eventsConfig = "worker_connections 4096;";
# Catch-all default - reject unknown hosts instead of falling back
virtualHosts."_" = {
default = true;
useACMEHost = domain;
forceSSL = true;
locations."/" = {
return = "444"; # Close connection without response
};
};
virtualHosts."test.${domain}" = { virtualHosts."test.${domain}" = {
useACMEHost = domain; useACMEHost = domain;
forceSSL = true; forceSSL = true;