diff --git a/conf/nginx.conf b/conf/nginx.conf index d745eac..1cda048 100755 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -7,16 +7,15 @@ location __PATH__/ { index index.php; # Chrooted PHP-FPM - location ~ ^__PATH__(?/.*\.php)$ { - fastcgi_split_path_info ^(.+?\.php)(/.*)$; - fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; - +#sub_path_only location ~ ^__PATH__(?/.*\.php)$ { +#root_path_only location ~ ^(?/.*\.php)$ { alias /; + fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; fastcgi_index index.php; - include fastcgi_params; - fastcgi_param REMOTE_USER $remote_user; + fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $chroot_path; + include fastcgi_params; } # Security related headers