Problems with fastcgi php migration
Igor Sysoev
is at rambler-co.ru
Thu Mar 13 15:43:51 MSK 2008
On Thu, Mar 13, 2008 at 08:00:43AM -0400, Ian M. Evans wrote:
> So 99% success. The final, final hurdle as I mentioned in my 9:14PM
> Eastern email is that the location regex works only if the extensionless
> file is in the root, i.e. example.com/galleries
>
> location ~ ^/(testgalleries|galleries|poll|news|photos)(/|$) {
>
> However, the file photos can appear anywhere like:
> example.com/academy/80/photos
> example.com/fest/tiff/2008/1/photos
>
> So the regex just needs one final tweak to allow it to find an
> extensionless file no matter if it's in root or any number of
> subdirectories deep. I read several regex tutorials last night but my
> brain goes on vacation with regex.
Well, could you show all locaitons of current config in form:
location / {
local
}
location ~ \.php$ {
fastcgi
}
location ~ ^/(testgalleries|galleries|poll|news|photos)(/|$) {
fastcgi
}
?
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list