Problems with fastcgi php migration
Thomas
iamkenzo at gmail.com
Sun Mar 16 14:12:29 MSK 2008
Hi Ian,
Could you post the final and complete configuration file for the php
section so we can have a global look at it? That might save days of
work for other people in the future.
Glad you could sort it out 100%.
On Sun, Mar 16, 2008 at 12:31 AM, Ian M. Evans <ianevans at digitalhit.com> wrote:
> 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