Problems with fastcgi php migration

Ian M. Evans ianevans at digitalhit.com
Thu Mar 13 01:10:14 MSK 2008


Igor,

Turning cgi.fix-pathinfo back on appears to fix almost everything.

So a 99% cheer!

It fixes everything where the extensionless file is immediately in the 
site's root, e.g.

example.com/galleries

It still gives the octet/stream if the file is in another directory. 
e.g. the script file "photos" can be in locations like:

example.com/academy/80/photos
example.com/tiff/fest/2008/2/photos

So some of the files can be several directories deep.

So, I imagine there's just one final change to the location regex and 
we'll be 100% nginx.

How do I change...

location ~ ^/(testgalleries|galleries|poll|news)(/|$)

...to not care where the file is found?

Many thanks again.





More information about the nginx mailing list