try_files issue

Xavier Grangier grangier at gmail.com
Sat Feb 14 00:20:42 MSK 2009


Hello,

I'm trying to use try_files like this (running 0.7.34)

location /users/ {
	root /home/website/people;
	set $uroot 1/15/334251/fr.html;
	try_files $document_root/$uroot @django;
}

Despite the fact that /home/website/people/1/15/334251/fr.html exists  
and is readable by nginx, I'm always redirected to @django
This is an exemple, in real case the $uroot variable is build.


Here is the debug log :

2009/02/13 22:04:33 [debug] 14340#0: *1 try to use file: "/home/ 
website/people/1/15/334251/fr.html"
2009/02/13 22:04:33 [debug] 14340#0: *1 try to use file: "@django"
2009/02/13 22:04:33 [debug] 14340#0: *1 test location: "@django"
2009/02/13 22:04:33 [debug] 14340#0: *1 using location: @django "/ 
users/334251/fr/?"

Thanks in advance,

xav





More information about the nginx mailing list