Ok, debug session here http://pastebin.com/DQ6WBYXU I see one try_files phase, maybe a script is processed differently then a static file. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251650,251652#msg-251652