Score:0

proxy pass in nginx is returning 404 or 500

kz flag

I wanted to pass requests coming in to my nginx server to anther IP with an endpoint. I have a .conf file listening on specific port 7070 and I want to pass requests coming into my http://xx.x.x.xxx:7070 to http://xx.xxx.x.xxx:6060/api/app. here is my .conf file proxy passing in my sites-enabled folder

    server {
        listen xx.x.xxx.xx:7070;
location / {
        proxy_pass http://xx.xxx.x.xxx:6060/api/app;
    }
}

I tried to curl -i http://xx.x.xxx.xx:7070 and i'm getting 404 and 500 errors. Is there any other routing configuration that I'm missing?

Michael Hampton avatar
cz flag
Check your logs.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.