Welcome! Log In Create A New Profile

Advanced

Re: try_files php

Marcos Neves
May 27, 2010 04:12PM
Thanks all for helping.

Marcos Neves
+55 44 9918-8488



2010/5/27 Igor Sysoev <igor@sysoev.ru>:
> On Thu, May 27, 2010 at 04:35:56PM -0300, Marcos Neves wrote:
>
>> If we ignore the layout files, using the rewrite solution is a good one?
>
> No. A good solution is:
>
>     location / {
>         try_files  $uri $uri/index.htm $uri.htm $uri.html @php;
>     }
>
>     location @php1 {
>         try_files  $uri.php  =404;
>         fastcgi_pass  ...
>     }
>
>
> --
> Igor Sysoev
> http://sysoev.ru/en/
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

try_files php

Marcos Neves May 27, 2010 02:18PM

Re: try_files php

mike May 27, 2010 02:32PM

Re: try_files php

Marcos Neves May 27, 2010 02:38PM

Re: try_files php

mike May 27, 2010 02:44PM

Re: try_files php

edogawaconan May 27, 2010 02:44PM

Re: try_files php

☣Merlin May 27, 2010 02:58PM

Re: try_files php

Igor Sysoev May 27, 2010 03:08PM

Re: try_files php

Marcos Neves May 27, 2010 03:18PM

Re: try_files php

Igor Sysoev May 27, 2010 03:28PM

Re: try_files php

Marcos Neves May 27, 2010 03:42PM

Re: try_files php

Igor Sysoev May 27, 2010 03:42PM

Re: try_files php

Marcos Neves May 27, 2010 04:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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