alias/try_files bug?

Maxim Dounin mdounin at mdounin.ru
Fri Feb 3 13:33:57 UTC 2012


Hello!

On Fri, Feb 03, 2012 at 06:57:22PM +0700, Edho Arief wrote:

> On Fri, Feb 3, 2012 at 6:49 PM, Maxim Dounin <mdounin at mdounin.ru> wrote:
> >
> > I've filled a ticket for try_files + alias problems to make sure
> > it won't be lost:
> >
> > http://trac.nginx.org/nginx/ticket/97
> >
> 
> While at it, add this another case:
> 
> # accessing /~edho/test.php will try
> # /home/edho/public_html/test.php/~edho/test.php
>   location ~ ^/~([^/]+)/(.+\.php)$ {
>     set $script_filename /home/$1/public_html/$2;
>     alias $script_filename;
>     try_files $uri =404;
>     include fastcgi_params;
>     fastcgi_param SCRIPT_FILENAME $script_filename;
>     fastcgi_pass 127.0.0.1:9000;
>   }

This is the same case as second one in the ticket.

Maxim Dounin



More information about the nginx-devel mailing list