Thank you for your advices and your insight, Igor, I've adjusted my configuration file accordingly, feels much better now. It is stupid, but the truth is that I didn't know that it was possible to use nested locations. Спасибо! Posted at Nginx Forum: http://forum.nginx.org/read.php?2,213229,213747#msg-213747