Hello Maxim, I am getting 499 error when I try using try files directive as you suggested. It got stuck and no response from the server. 50.50.50.50 - - [08/Aug/2014:10:12:01 +0200]"GET /aaa/bbb/ccc/index.html HTTP/1.1" 499 0 "-" "Wget/1.14 (linux-gnu)" 4.678 --Manish Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252379,252410#msg-252410