Welcome! Log In Create A New Profile

Advanced

Re: Using Domain Names in proxy_pass directive

May 23, 2014 08:41AM
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
Subject Author Posted

Using Domain Names in proxy_pass directive

Shobhit Mishra May 23, 2014 07:39AM

Re: Using Domain Names in proxy_pass directive

Ruslan Ermilov May 23, 2014 08:22AM

Re: Using Domain Names in proxy_pass directive

Shobhit Mishra May 23, 2014 08:41AM

Re: Using Domain Names in proxy_pass directive

Valentin V. Bartenev May 23, 2014 11:06AM

Re: Using Domain Names in proxy_pass directive

Shobhit Mishra May 25, 2014 03:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 54
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready