Welcome! Log In Create A New Profile

Advanced

Re: Using Domain Names in proxy_pass directive

Ruslan Ermilov
May 23, 2014 08:22AM
On Fri, May 23, 2014 at 07:39:36AM -0400, Shobhit Mishra wrote:
> Hi
>
> I am using nginx as reverse proxy with FQDN for the backend server .
>
> My configuration for the location block looks like this :-
>
> location / {
>
> set $ustreamsbc sbc.example.com ;
> proxy_pass HTTPS://$ustreamsbc ;
>
> 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;
> }
>
> I have a resolver in place for this FQDN and its running fine.
>
>
> My doubt is that if I change the mapped IP for this FQDN in the DNS server ,
> would nginx re-resolve the FQDN to the new IP for all the future requests.
>
> Also does nginx honor TTL for all the FQDN stored in variables as shown
> above ??
>
> Thanks and Regards
>
> Shobhit Mishra

nginx will re-resolve names as configured by the
http://nginx.org/r/resolver directive. By default,
the TTL of the response is honored but it can be
overridden.

(Whether the queried server has an up-to-date info
is another question.)

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
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: 161
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready