try_files breaking index

Marcos Neves marcos.neves at gmail.com
Sat Dec 12 02:06:18 MSK 2009


Thanks, that works!

Marcos Neves
+55 44 9918-8488


On Fri, Dec 11, 2009 at 5:35 AM, Igor Sysoev <igor at sysoev.ru> wrote:

> On Fri, Dec 11, 2009 at 12:56:11AM -0200, Marcos Neves wrote:
>
> > I can access my site using /index.php?q=node/1 or /?q=node/1
> >
> > When I add the code below, /?q=node/1 stop working:
> >
> >     location / {
> >       index index.php index.htm index.html;
> >       try_files $uri /_cache$uri /index.php;
> >     }
> >
> > why?
>
> You should add a directory test:
>
> -       try_files $uri /_cache$uri /index.php;
> +       try_files $uri $uri/ /_cache$uri /index.php;
>
>
> --
> Igor Sysoev
> http://sysoev.ru/en/
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20091211/669d0478/attachment.html>


More information about the nginx mailing list