Maybe You should try this module:
https://github.com/GUI/nginx-upstream-dynamic-servers
Regards,
Biazus
On Fri, May 13, 2016 at 3:13 AM, RT.Nat <nginx-forum@forum.nginx.org> wrote:
> Not clear regarding, " Also you might check using directly the hostname as
> it might be possible that there is a bug when using variables."
>
> I tried adding the variable for resolving the dns but still the ip address
> does not changes. Is there any other way? or is there any bug in my script.
>
> resolver 8.8.8.8 valid=30s;
> resolver_timeout 10s;
> set $checkup "example.net";
>
> location / {
> rewrite ^/(.*) /$1 break;
> proxy_pass https://$checkup:8080;
> }
>
> even adding the following codes instead of the above proxy pass doesnt
> work.
>
> proxy_pass https://example.net:8080$request_uri;
> proxy_pass https://example.net:8080;
>
> Posted at Nginx Forum:
> https://forum.nginx.org/read.php?2,266857,266880#msg-266880
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
--
*Daniel Biazus, R&DAZION | Deliver. Accelerate. Protect.Office: +55 51
3012 3005 <%2B55%2051%203012%203005> | Mobile: +55 51 8227 9032
<callto:+555182279032>*
Quaisquer informações contidas neste e-mail e anexos podem ser
confidenciais e privilegiadas, protegidas por sigilo legal. Qualquer forma
de utilização deste documento depende de autorização do emissor, sujeito as
penalidades cabíveis.
Any information in this e-mail and attachments may be confidential and
privileged, protected by legal confidentiality. The use of this document
require authorization by the issuer, subject to penalties.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx