fix: local run failed to run php for all urls
This commit is contained in:
parent
cd94d82c1a
commit
a00d7eebfd
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user