Reverse proxy

Jagannath Bilgi jsbilgi at yahoo.com
Tue Sep 4 18:09:34 UTC 2018


Hi All,
New to nginx and reverse proxies. Trying to setup reserves proxy using nginx and docker. Have defined upstream in nginx config and created dependency in docker-compose as well. However getting time out error. 
Attached docker-compose and nginx.conf file for reference. Below is the error message. 
Note: However able to get the pages using below links http://178.128.159.51:81, http://178.128.159.51:82, http://178.128.159.51:83, http://178.128.159.51:100/login 2018/09/02 13:29:20 [error] 10#10: *1 upstream timed out (110: Connection timed out) while connecting to upstream, client: 103.252.27.57, server: , request: "GET / HTTP/1.1", upstream: "http://178.128.159.51:81/", host: "178.128.159.51"2018/09/02 13:30:21 [error] 10#10: *1 upstream timed out (110: Connection timed out) while connecting to upstream, client: 103.252.27.57, server: , request: "GET /favicon.ico HTTP/1.1", upstream: "http://178.128.159.51:81/favicon.ico", host: "178.128.159.51", referrer: "http://178.128.159.51/"
2018/09/02 13:30:50 [error] 12#12: *6 upstream timed out (110: Connection timed out) while connecting to upstream, client: 103.252.27.57, server: , request: "GET /topic HTTP/1.1", upstream: "http://178.128.159.51:82/", host: "178.128.159.51"
2018/09/02 13:32:07 [error] 7#7: *9 upstream timed out (110: Connection timed out) while connecting to upstream, client: 103.252.27.57, server: , request: "GET /wb HTTP/1.1", upstream: "http://178.128.159.51:100/login", host: "178.128.159.51"
2018/09/02 13:35:21 [error] 8#8: *14 upstream timed out (110: Connection timed out) while connecting to upstream, client: 103.252.27.57, server: , request: "GET /admin HTTP/1.1", upstream: "http://178.128.159.51:83/", host: "178.128.159.51"

Please advise what i am missing.
Thanks and regards

Jagannath S Bilgi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20180904/80ad8718/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nginx.conf
Type: application/octet-stream
Size: 1774 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20180904/80ad8718/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: docker-compose.yml
Type: application/octet-stream
Size: 1042 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20180904/80ad8718/attachment-0001.obj>


More information about the nginx mailing list