fastcgi_split_path_info capture group bug?

uid_b nginx-forum at nginx.us
Fri Jan 21 01:20:30 MSK 2011


I'm running nginx v0.8.54 (latest stable), and I'm having issues with
fastcgi_split_path_info passing the query parameters into PATH_INFO

e.g., http://example.com/index.php/foo/bar/?id=1 breaks is passed to
fcgi as
[code]
SCRIPT_FILENAME = /var/www/index.php          (good)
PATH_INFO       = /foo/bar/?id=1              (bad)
[/code]

I've defined the split in my config as:
[code]
  fastcgi_split_path_info ^(.+\.php)(.*)\??$;

  fastcgi_param SCRIPT_FILENAME   $document_root$fastcgi_script_name;
  fastcgi_param PATH_INFO         $fastcgi_path_info;
[/code]

The second capture group should only grab "/foo/bar/", am I doing
something obviously wrong here?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,168078,168078#msg-168078




More information about the nginx mailing list