Update nginx.conf

Remove evil "if". Added option for socket on php. Added error log. Remove base location to be as global root.