mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2025-06-22 10:23:35 +02:00
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user