Day 16: Install and Configure Nginx as an LBR between this task i can’t find mistake pls share all steps with cmd

curl -I http://172.16.238.10:8085
HTTP/1.1 200 OK

but can’t connect localhost

curl http://localhost
error: [*1 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: “GET / HTTP/1.1”, upstream: “http://172.16.238.12:80/”, host: “localhost”

when connect with static button: bad gateway: 502

also,
curl http://172.16.238.10:8085/health
error: 404 unhealthy

LBR port 8085 …all app sevrer port 8085
i did file entry
sudo vi /etc/nginx/nginx.conf
http {

upstream backend {
server 172.16.238.10:8085;
server 172.16.238.11:8085;
server 172.16.238.12:8085;
}

server {
listen 8085;
location / {
proxy_pass http://backend;
}
}

Please take a look at this guy’s solution; it may help.

Also, if you need to display more code, please use code blocks so your code isn’t corrupted by the editor.