Welcome! Log In Create A New Profile

Advanced

resolver didn't work when proxy_pass is a given domain.

chinix
August 15, 2011 08:44AM
sorry for my poor english first.

I run nginx as a reverse proxy server,and set a dns server for it.
I add the dns for the nginx at http directive:
resolver 192.168.0.106;
In nginx configuration:
proxy_pass http://test.nginx.org;
and the dns server configuration:
test.nginx.org point to 192.168.0.100.
but in debug log:
2011/08/15 15:51:45 [error] 16819#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.0.105, server: nginx.org, request: "GET / HTTP/1.1", upstream: http://206.251.255.63:80/, host: "test.nginx.org"

it show the nginx resole test.nginx.org from system defined dns.

only when I configuration nginx:
proxy_pass http://$http_host;

the nginx resolve through the define dns.


How to only use the defined dns for nginx even the proxy_pass source is a domain?
2011-08-15



chinix_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

resolver didn't work when proxy_pass is a given domain.

chinix August 15, 2011 08:44AM

Re: resolver didn't work when proxy_pass is a given domain.

Maxim Dounin August 15, 2011 09:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 293
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready