nginx: fix the http3 wordpress fix
This commit is contained in:
parent
6cd1ba6aa5
commit
375674b1b4
|
@ -43,7 +43,6 @@ in
|
||||||
root = "/srv/web/fsrewsp";
|
root = "/srv/web/fsrewsp";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
index index.php index.html;
|
index index.php index.html;
|
||||||
fastcgi_param HTTP_HOST $host;
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
locations = {
|
locations = {
|
||||||
|
@ -59,6 +58,7 @@ in
|
||||||
include ${pkgs.nginx}/conf/fastcgi_params;
|
include ${pkgs.nginx}/conf/fastcgi_params;
|
||||||
include ${pkgs.nginx}/conf/fastcgi.conf;
|
include ${pkgs.nginx}/conf/fastcgi.conf;
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
|
||||||
|
fastcgi_param HTTP_HOST $host;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
"~ \.log$".return = "403";
|
"~ \.log$".return = "403";
|
||||||
|
|
|
@ -40,7 +40,6 @@ in
|
||||||
root = "/srv/web/nightline";
|
root = "/srv/web/nightline";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
index index.php index.html;
|
index index.php index.html;
|
||||||
fastcgi_param HTTP_HOST $host;
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
locations = {
|
locations = {
|
||||||
|
@ -56,6 +55,7 @@ in
|
||||||
include ${pkgs.nginx}/conf/fastcgi_params;
|
include ${pkgs.nginx}/conf/fastcgi_params;
|
||||||
include ${pkgs.nginx}/conf/fastcgi.conf;
|
include ${pkgs.nginx}/conf/fastcgi.conf;
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
|
||||||
|
fastcgi_param HTTP_HOST $host;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
"~ \.log$".return = "403";
|
"~ \.log$".return = "403";
|
||||||
|
|
Loading…
Reference in a new issue