Update wp path

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
2022-11-28 17:15:38 +01:00
parent 6474bb13a4
commit 9d1e0bfaae
3 changed files with 19 additions and 11 deletions

View File

@ -6,11 +6,11 @@ server {
index index.php index.html index.htm;
root /var/www/html;
root /var/www/wordpress;
location ~ /.well-known/acme-challenge {
allow all;
root /var/www/html;
root /var/www/wordpress;
}
location / {
@ -23,7 +23,11 @@ server {
fastcgi_pass wordpress:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# Necessary to avoid 404 error when changing the wordpress path
#fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME /var/www/html$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}