mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2025-06-13 14:09:26 +02:00
@ -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;
|
||||
|
Reference in New Issue
Block a user