tester les config wordpress

This commit is contained in:
Ubuntu
2025-07-04 15:04:21 +00:00
parent 8ba0530dd3
commit c3d00f8ede
+11 -2
View File
@@ -71,8 +71,9 @@ http {
#root and index and server_name
root /var/www/html;
server_name yantoine.42.fr;
#index index.nginx-debian.html;
index index.php
#index;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ =404;
}
@@ -82,5 +83,13 @@ http {
include snippets/fastcgi-php.conf;
# fastcgi_pass php:9000;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
}