diff --git a/nixos/modules/services/web-servers/nginx/default.nix b/nixos/modules/services/web-servers/nginx/default.nix index 1a58662adafa..1df7dc43048c 100644 --- a/nixos/modules/services/web-servers/nginx/default.nix +++ b/nixos/modules/services/web-servers/nginx/default.nix @@ -1226,6 +1226,7 @@ in ++ lib.optional cfg.recommendedZstdSettings pkgs.nginxModules.zstd; services.nginx.virtualHosts.localhost = mkIf cfg.statusPage { + serverAliases = [ "127.0.0.1" ] ++ lib.optional config.networking.enableIPv6 "[::1]"; listenAddresses = lib.mkDefault ([ "0.0.0.0" ] ++ lib.optional enableIPv6 "[::]");