correct handeling of 404 error
refer to http://wiki.nginx.org/HttpCoreModule#try_files
tested on my system