When use single node Cloud Foundry, nignx cause 502 error. For the nignx proxy to itself cause infinite loop, it throw out 502 errors.