This commit is contained in:
Bryan Ramos 2026-03-12 05:01:28 -04:00
parent 2f34d995df
commit 05ed364b26

View file

@ -35,13 +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 # Catch-all default - friendly error for unknown subdomains
virtualHosts."_" = { virtualHosts."_" = {
default = true; default = true;
useACMEHost = domain; useACMEHost = domain;
forceSSL = true; forceSSL = true;
locations."/" = { locations."/" = {
return = "444"; # Close connection without response return = "404 'Not Found: This subdomain does not exist.'";
extraConfig = ''
add_header Content-Type text/plain;
'';
}; };
}; };