Improved nginx config

try_files is preferred over if()
the =404 prevents some attacks
fastcgi_params and port 9000 are more common defaults