{ ... }: { services.nginx.virtualHosts = { "www.bula22.de" = { enableACME = true; forceSSL = true; locations."/" = { return = "301 https://bula22.de$request_uri"; }; }; "bula22.de" = { enableACME = true; forceSSL = true; locations."/" = { return = ''200 ' VCP Bundeslager 2022 ' ''; extraConfig = '' add_header Content-Type text/html; ''; }; }; }; }