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

@ -16,7 +16,7 @@ server {
location ~ /.well-known/acme-challenge {
allow all;
root /var/www/html;
root /var/www/worpress;
}
location / {
@ -30,7 +30,7 @@ server {
listen [::]:443 ssl http2;
server_name bensuperpc.org www.bensuperpc.org wordpress.bensuperpc.org www.wordpress.bensuperpc.org;
root /var/www/html;
root /var/www/worpress;
index index.php index.html index.htm;
# Keepalive for 70 seconds
@ -109,7 +109,11 @@ server {
fastcgi_pass wordpress_server;
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;
fastcgi_intercept_errors on;