how to use $host variable in proxy_pass

Piotr Sikora piotr.sikora at
Wed Dec 28 20:09:32 UTC 2011


> resolver;
> (...)
> 375#0: recv() failed (111: Connection refused) while resolving,
> resolver:

That's because you don't have DNS resolver running on the localhost.

Point nginx to the DNS resolver you're using (from /etc/resolv.conf).

Best regards,
Piotr Sikora < piotr.sikora at >

More information about the nginx mailing list