diff --git a/conf/nginx.conf b/conf/nginx.conf index 69a5329..0e02f61 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,14 +1,11 @@ -root __FINALPATH__/; -index index.php; - -location __PATH__/ { - try_files $uri $uri/ /index.php?$args; - } +root __FINALPATH__/; +index index.php; location ~ \.php$ { - include /etc/nginx/fastcgi_params; try_files $uri =404; fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; - fastcgi_index index.php; + fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include /etc/nginx/fastcgi_params; + }