Using Domain Names in proxy_pass directive

Shobhit Mishra nginx-forum at nginx.us
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
balancing.

I would be using an upstream block for the same.

My default configuration is as below :

upstream us1 
{
server sbc.example1.com:443 ;
server sbc.example2.com:443 ;

}

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.

Thanks 

Shobhit Mishra

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,250307,250311#msg-250311



More information about the nginx mailing list