diff --git a/conf/nginx.conf b/conf/nginx.conf index 5edd960..e323645 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -11,7 +11,7 @@ if ($scheme = http) { index index.php; try_files $uri $uri/ index.php; -location ~ \.php { +location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass unix:/var/run/php/php7.0-fpm-__NAME__.sock; fastcgi_index index.php;