alias/try_files bug?
Edho Arief
edho at myconan.net
Fri Feb 3 11:57:22 UTC 2012
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;
}
--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
More information about the nginx-devel
mailing list