<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Have you also checked that the DNS returns the correct value? As
the valid option means that nginx will ask the DNS server again,
but if the DNS replies with same old ip.. Also you might check
using directly the hostname as it might be possible that there is
a bug when using variables. <br>
</p>
<pre class="moz-signature" cols="72">Best regards,
Vintila Mihai Alexandru</pre>
<div class="moz-cite-prefix">On 5/12/2016 1:11 PM, RT.Nat wrote:<br>
</div>
<blockquote
cite="mid:893765ff38700b55744c2821f04511fb.NginxMailingListEnglish@forum.nginx.org"
type="cite">
<pre wrap="">I wanted check whether the resolver solves the DNS in a dynamic manner when
the ip addresses changes.
So I add the given code after several findings and yet the resolving the ip
address is not happening.
server{
...........
resolver 8.8.8.8 valid=30s;
resolver_timeout 10s;
set $upstream "example.net";
location / {
rewrite ^/(.*) /$1 break;
proxy_pass <a class="moz-txt-link-freetext" href="https://$upstream:3000">https://$upstream:3000</a>;
}
}
Posted at Nginx Forum: <a class="moz-txt-link-freetext" href="https://forum.nginx.org/read.php?2,266857,266862#msg-266862">https://forum.nginx.org/read.php?2,266857,266862#msg-266862</a>
_______________________________________________
nginx mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nginx@nginx.org">nginx@nginx.org</a>
<a class="moz-txt-link-freetext" href="http://mailman.nginx.org/mailman/listinfo/nginx">http://mailman.nginx.org/mailman/listinfo/nginx</a>
</pre>
</blockquote>
<br>
</body>
</html>