I recently updated PHP, and now my nginx configuration for Phalcon is not working properly. So before the updates if i went to: domain.com/controller/nonIndex it would load the nonIndex controller / view just fine
However, now when I go domain.com/controller/nonIndex, it just loads a blank page. Going to domain.com/controller works as expected. See logs below:
The box: PHP 5.4 Phalcon 2.08 Centos 6.5
Nginx Logs:
"^(.+)$" matches "/controller/nonindex"
"rewritten data: "/index.php/controller/nonindex"
Nginx Conf:
listen xxx.xx.xxx.xxx:80;
server_name dev.domain.com;
index index.php index.html index.htm;
set $root_path '/var/www/project/public';
root $root_path;
location / {
try_files $uri $uri/ @php_mvc;
}
location @php_mvc {
rewrite ^(.+)$ /index.php$1 last;
#rewrite ^/(.*)$ /index.php?_url=/$1;
#rewrite ^(.+)$ /index.php?_url=$1 last;
}
error_log /var/log/nginx/gsc-dev.error.log debug;
location ~ ^(.+\.php)(/.*)?$ {
fastcgi_split_path_info ^(.+\.php)(/.*)?$;
set $script_filename $document_root$fastcgi_script_name;
if (!-e $script_filename) {
return 404;
}
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index /index.php;
include fastcgi_params;
fastcgi_param APPLICATION_ENV development;
fastcgi_param SCRIPT_FILENAME $script_filename;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
Any help is greately appreicated! Thank you!