fix: local run failed to run php for all urls

This commit is contained in:
Hugo Poissonnet 2022-11-25 17:22:15 +01:00
parent cd94d82c1a
commit a00d7eebfd

View File

@ -4,7 +4,7 @@ server {
# error_log /var/log/nginx/error.log; # error_log /var/log/nginx/error.log;
# access_log /var/log/nginx/access.log; # access_log /var/log/nginx/access.log;
root /var/www/html; root /var/www/html;
try_files $uri $uri/ /index.php /index.html; try_files $uri $uri/ /index.php;
location ~ \.php$ { location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass php-fpm:9000; fastcgi_pass php-fpm:9000;