"Connection Refused" with nginx as reverse proxy
francis at daoine.org
Mon Feb 1 17:49:30 UTC 2016
On Mon, Feb 01, 2016 at 04:24:20PM +0000, Radha Venkatesh (radvenka) wrote:
> And I issued the curl command like this, but I still see this error
> curl -v http://22.214.171.124:8080/rhesos-server/rhesos/api/v1/ping
> * About to connect() to 126.96.36.199 port 8080 (#0)
> * Trying 188.8.131.52...
> * Adding handle: conn: 0x7ffb9c003a00
> * Adding handle: send: 0
> * Adding handle: recv: 0
> * Curl_addHandleToPipeline: length: 1
> * - Conn 0 (0x7ffb9c003a00) send_pipe: 1, recv_pipe: 0
> * Failed connect to 184.108.40.206:8080; Connection refused
> * Closing connection 0
> curl: (7) Failed connect to 220.127.116.11:8080; Connection refused
If the connection attempt gets to nginx, the nginx logs can show something
But it looks to me like your security system is preventing the request
getting to nginx in the first place. Check your firewall or other network
control logs to see what is happening.
> Also, my curl command with the proxy set in the command is trying to
> simulate how the real request is going to come in to the server.
nginx is not a proxy. So no request that comes to the server will involve
"curl -x" with the nginx host:port. As far as any client is concerned,
nginx is a web server.
Good luck with it,
Francis Daly francis at daoine.org
More information about the nginx