Hello,
I have a problem with the Nginx proxy for the docker.
When trying to enter the site from the container is: 502 Bad Gateway:
or
nginx.conf
it was originally: proxy_pass http://0.0.0.0:8181; change to 127.0.0.1 or 172.17.0.2
all possible solutions from the forum and plesk support have no effect
I have added the IP addresses to the white list
I have a problem with the Nginx proxy for the docker.
When trying to enter the site from the container is: 502 Bad Gateway:
Code:
2020/03/16 12:15:06 [error] 28661#0: *27 connect() failed (111: Connection refused) while connecting to upstream, client: 31.0.xxx.xxx, server: ubuntu.led-glass.eu, request: "GET /favicon.ico HTTP/1.1", upstream: "http://172.17.0.2:8181/favicon.ico", host: "ubuntu.led-glass.eu", referrer: "http://ubuntu.led-glass.eu/"
Code:
2020/03/16 12:15:06 [error] 28661#0: *27 connect() failed (111: Connection refused) while connecting to upstream, client: 31.0.xxx.xxx, server: ubuntu.led-glass.eu, request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:8181/favicon.ico", host: "ubuntu.led-glass.eu", referrer: "http://ubuntu.led-glass.eu/"
nginx.conf
Code:
#extension docker begin
location ~ ^/.* {
proxy_pass http://0.0.0.0:8181;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
#extension docker end
it was originally: proxy_pass http://0.0.0.0:8181; change to 127.0.0.1 or 172.17.0.2
all possible solutions from the forum and plesk support have no effect
I have added the IP addresses to the white list