Problems with fastcgi php migration
Ian M. Evans
ianevans at digitalhit.com
Mon Mar 10 00:29:13 MSK 2008
One possible solution to the path_info issue:
In the fastcgi.conf add:
if ($fastcgi_script_name ~ "^/galleries(/.+)$") {
set $path_info $1;
}
fastcgi_param PATH_INFO $path_info;
Doing that fixed the path_info issue i.e.
Before fix:
/galleries/123 _SERVER["PATH_INFO"]=/123
/galleries _SERVER["PATH_INFO"]=/galleries (should be blank)
After fix:
/galleries/123 _SERVER["PATH_INFO"]=/123
/galleries/123 _SERVER["PATH_INFO"]=empty
I'll try adding a few of those for the extensionless files. Still need
to figure out why it's not finding the index.shtml and index.php files.
More information about the nginx
mailing list