Multiviews in Nginx
Edho P Arief
edhoprima at gmail.com
Wed Dec 8 18:28:30 MSK 2010
On Wed, Dec 8, 2010 at 9:24 PM, icaro81 <nginx-forum at nginx.us> wrote:
> Hi,
>
> It's possible in Nginx to make "Multiviews"? (like Apache) I didn't
> found information about this for Nginx
>
> For example:
> www.domain.com/test1/ -> www.domain.com/test1.php
> www.domain.com/test1/test2/ -> www.domain.com/test1/test2.php
> www.domain.com/every/ -> www.domain.com/every.php
>
> But if www.domain.com/every/ exists, goes to www.domain.com/every/ of
> course. All directories who doesn't exists, tries to .php and if not,
> 404.
something like
location ~ ^(.*)/$ {
try_files $uri $1.php;
}
?
--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
More information about the nginx
mailing list