On the 'Serving Nginx' I'd use Lua to test for a zero byte file and return the 404 there. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255421,255422#msg-255422