> app1 connects to app2 using http://localhost but nginx >doesn't seem to > understand the request. > > Should I add localhost to the server_name??? yes, that would maybe help. alternatively add "default" to the server_name. hth