try_files in subdirectory

Mathew Davies thepixeldeveloper at googlemail.com
Wed May 20 02:33:19 MSD 2009


That had no effect, any other ideas?

2009/5/17 Michael Shadle <mike503 at gmail.com>

> 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 <
> thepixeldeveloper at googlemail.com> 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>
>> 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
>
>


-- 
Kind Regards,
Mathew Davies - Managing Director
The Pixel Developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090519/a09e96e5/attachment.html>


More information about the nginx mailing list