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";