Welcome! Log In Create A New Profile

Advanced

Re: Does Nginx honor DNS TTLs for proxy upstreams?

Maxim Dounin
September 26, 2011 09:58AM
Hello!

On Mon, Sep 26, 2011 at 09:40:53AM -0400, csg wrote:

> Maxim Dounin Wrote:
> -------------------------------------------------------
> > Resolver is only used for proxy_pass with
> > variables, i.e.
> > something like
> >
> > resolver 127.0.0.1;
> > set $backend "foo.example.com";
> > proxy_pass http://$backend;
> >
> > In such setup ip address of "foo.example.com" will
> > be looked up
> > dynamically and result will be cached for 5
> > minutes.
>
> Thanks Maxim, that would be great but is it really supposed to work (in
> the stable branch)? The 1.0.3 which was deployed up to now gave me
>
> no host in upstream ""
>
> errors, with 1.0.6 I am getting
>
> invalid URL prefix in "http://"
>
> errors. If it helps I can try to setup a simplified test case, because
> posting the full configuration would certainly exceed some acceptable
> message limit of this list/forum.

Errors suggest you don't have $backend set, and resulting
proxy_pass tries to go to "http://" which is invalid.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Does Nginx honor DNS TTLs for proxy upstreams?

csg September 26, 2011 04:42AM

Re: Does Nginx honor DNS TTLs for proxy upstreams?

Maxim Dounin September 26, 2011 05:38AM

Re: Does Nginx honor DNS TTLs for proxy upstreams?

csg September 26, 2011 09:40AM

Re: Does Nginx honor DNS TTLs for proxy upstreams?

Maxim Dounin September 26, 2011 09:58AM

Re: Does Nginx honor DNS TTLs for proxy upstreams?

csg September 28, 2011 12:05PM

Re: Does Nginx honor DNS TTLs for proxy upstreams?

Maxim Dounin September 28, 2011 12:14PM

Re: Does Nginx honor DNS TTLs for proxy upstreams?

csg September 28, 2011 03:35PM

Re: Does Nginx honor DNS TTLs for proxy upstreams?

csg September 29, 2011 03:31AM

Re: Does Nginx honor DNS TTLs for proxy upstreams?

csg September 29, 2011 03:32AM

Re: Does Nginx honor DNS TTLs for proxy upstreams?

csg September 29, 2011 03:53AM

Re: Does Nginx honor DNS TTLs for proxy upstreams?

Maxim Dounin September 29, 2011 03:30AM

Re: Does Nginx honor DNS TTLs for proxy upstreams?

csg October 04, 2011 04:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 74
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