Using Domain Names in proxy_pass directive

Shobhit Mishra nginx-forum at
Fri May 23 12:41:09 UTC 2014

Thanks Ruslan  for the reply ..

I have another query regarding this ..

I am  planning to use more than one backend servers for supporting Load

I would be using an upstream block for the same.

My default configuration is as below :

upstream us1 
server ;
server ;


and the location block is 

location / {

  proxy_pass  HTTPS://us1   ;

                proxy_next_upstream error timeout invalid_header http_500
http_502 http_503 http_504;

                proxy_connect_timeout 10s ;
                include /usr/local/nginx/conf/proxy.conf ;

                proxy_redirect     off;

Does nginx honor TTL for the FQDN in the upstream block as well ?? 

As per my understanding nginx resolves FQDN in upstream blocks only during
configuration parsing ..

Please suggest on this.


Shobhit Mishra

Posted at Nginx Forum:,250307,250311#msg-250311

More information about the nginx mailing list