how to use $host variable in proxy_pass

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


Hi,

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

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 frickle.com >



More information about the nginx mailing list