nginx bad gateway problem solved