Problems with fastcgi php migration

Ian M. Evans ianevans at digitalhit.com
Sun Mar 16 02:31:40 MSK 2008


Maxim Dounin wrote:
> - if ($uri ~ 
> ^/(?:.+/)?(testgalleries|galleries|poll|news|photos|test)(/.*)) {
> - set  $script_name  /$1;
> + if ($uri ~ 
> ^(.*/(?:testgalleries|galleries|poll|news|photos|test))(/.*)) {
> + set  $script_name  $1;
> ... 
> You old regex was capturing only last path component.

I think you've done it! All the test cases appear to work. $PHP_SELF 
seems to not work as well in the CGI environment, but I've read about 
issues with that in the past, so that'll be a PHP fix.

Otherwise I think I'm pretty much ready to go 100% nginx.

Thanks!





More information about the nginx mailing list