From 2916403f08606fac246679eabf7b954dc036cf16 Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Sat, 7 Aug 2021 17:41:20 +0200 Subject: return 444 when trying to connect directly through the IP address --- config/networking.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/networking.nix b/config/networking.nix index fa7780f..ba49ea9 100644 --- a/config/networking.nix +++ b/config/networking.nix @@ -22,6 +22,14 @@ services.nginx = { enable = true; virtualHosts = { + # return 444 when trying to connect directly through the IP address + "_" = { + default = true; + extraConfig = '' + return 444; + ''; + }; + "quentin.aristote.fr" = { root = "${pkgs.personal.academic-webpage}"; }; }; }; -- cgit v1.2.3