I am using amazon ec2 instances for deploying, unlike the vagrant. so, i have't included domain names. and i configured the server name as localhost. but now when i point to my instance i am getting "400 bad gateway"