3 ms·
It shouldn't but maybe I recall wrong... what are you looking at? You appear to already have the seo-friendly URLs setup in nginx? That, I think, is enough? Ba
by meritt 13y ago
It shouldn't but maybe I recall wrong... what are you looking at? You appear to already have the seo-friendly URLs setup in nginx? That, I think, is enough?
Basically you should disable cgi.fix_pathinfo in php.ini and have something like (in your server block)
location ~ ^.+\.php {
include fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}