Welcome! Log In Create A New Profile

Advanced

Re: try_files in subdirectory

May 17, 2009 06:40PM
It's probably matching the .php first. Put that in a location / block
so devkit can be found first.

On May 17, 2009, at 3:05 PM, Mathew Davies wrote:

> Hi,
>
> I am using try_files in a subdirectory and I'm coming up with some
> issues.
>
> # default
> server
> {
> server_name localhost;
>
> location ~ \.php$
> {
> try_files $uri $uri/;
> fastcgi_pass 127.0.0.1:9000;
> include fastcgi_params;
> }
>
> location /devkit/
> {
> try_files $uri $uri/ @kohana;
> }
>
> location @kohana
> {
> fastcgi_pass 127.0.0.1:9000;
> include fastcgi_params;
> fastcgi_param SCRIPT_FILENAME /usr/local/nginx/html/devkit/
> index.php;
> }
> }
>
> This URL works correctly,
>
> http://www.domain.com/devkit/index.php/coaster/17/olympia-looping
>
> but when I remove the index.php file I get :
>
> The page you requested devkit/coaster/17/olympia-looping could not
> be found.
>
> but it should be coaster/17/olympia-looping instead.
>
> Any ideas?
> --
> Kind Regards
Subject Author Posted

try_files in subdirectory

Mathew Davies May 17, 2009 06:05PM

Re: try_files in subdirectory

mike May 17, 2009 06:40PM

Re: try_files in subdirectory

Mathew Davies May 19, 2009 06:33PM

Re: try_files in subdirectory

Igor Sysoev May 20, 2009 05:15AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 60
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