alias/try_files bug?

Edho Arief edho at myconan.net
Fri Feb 3 13:36:08 UTC 2012


On Fri, Feb 3, 2012 at 8:33 PM, Maxim Dounin <mdounin at mdounin.ru> wrote:
> 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.
>

The result seems different though. Not sure why.

-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



More information about the nginx-devel mailing list