"Connection Refused" with nginx as reverse proxy

Francis Daly francis at daoine.org
Mon Feb 1 08:32:08 UTC 2016

On Mon, Feb 01, 2016 at 01:00:04AM +0000, Radha Venkatesh (radvenka) wrote:

Hi there,

>   server {
>     listen;

> However, when I use the curl command to send a request using the proxy like this, I see a "Connection Refused"
> curl -v -x 'http://<username>:<password>@'

Two things there:

* the "listen" address and the "curl -x" address are not the same.
* nginx is not a proxy

Just make your curl request as normal to the nginx server.

> Can someone tell what is wrong in my configuration?

Possibly nothing.

Francis Daly        francis at daoine.org

More information about the nginx mailing list