diff --git a/conf/nginx.conf b/conf/nginx.conf index 2e4bbf2..8cb9e61 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,5 +1,4 @@ -#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; -location __PATH__/ { +location / { # Path to source alias __FINALPATH__/public/ ; @@ -11,9 +10,8 @@ location __PATH__/ { index index.php; - #try_files $uri __PATH__/index.php; - try_files $uri __PATH__/index.php$is_args$query_string; - + try_files $uri __PATH__/index.php; + location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;