Welcome! Log In Create A New Profile

Advanced

Re: try_files breaking index

Igor Sysoev
December 11, 2009 02:46AM
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@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

try_files breaking index

Marcos Neves December 10, 2009 10:02PM

Re: try_files breaking index

Igor Sysoev December 11, 2009 02:46AM

Re: try_files breaking index

Marcos Neves December 11, 2009 06:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 204
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready