From 375674b1b40c9dc3196800ce211109abb731ef32 Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Tue, 16 Apr 2024 20:51:16 +0200 Subject: [PATCH] nginx: fix the http3 wordpress fix --- modules/web/fsrewsp.nix | 2 +- modules/web/nightline.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/web/fsrewsp.nix b/modules/web/fsrewsp.nix index f8f0799..5fe4cd3 100644 --- a/modules/web/fsrewsp.nix +++ b/modules/web/fsrewsp.nix @@ -43,7 +43,6 @@ in root = "/srv/web/fsrewsp"; extraConfig = '' index index.php index.html; - fastcgi_param HTTP_HOST $host; ''; locations = { @@ -59,6 +58,7 @@ in include ${pkgs.nginx}/conf/fastcgi_params; include ${pkgs.nginx}/conf/fastcgi.conf; fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name; + fastcgi_param HTTP_HOST $host; ''; }; "~ \.log$".return = "403"; diff --git a/modules/web/nightline.nix b/modules/web/nightline.nix index 0e264a4..8abd76d 100644 --- a/modules/web/nightline.nix +++ b/modules/web/nightline.nix @@ -40,7 +40,6 @@ in root = "/srv/web/nightline"; extraConfig = '' index index.php index.html; - fastcgi_param HTTP_HOST $host; ''; locations = { @@ -56,6 +55,7 @@ in include ${pkgs.nginx}/conf/fastcgi_params; include ${pkgs.nginx}/conf/fastcgi.conf; fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name; + fastcgi_param HTTP_HOST $host; ''; }; "~ \.log$".return = "403";