Welcome! Log In Create A New Profile

Advanced

Re: Nginx caching proxy dns name even when using variables

Rob Fulton
September 27, 2018 10:30AM
Hi,

I’ve done some further testing on this today and discovered that the configuration works correctly when the proxy_pass url is accessed via http, I can see dns queries for the proxy_server url every minute as per the ttl. The moment I change the url to https, this stops. Is this a known limitation?

Regards

Rob


> On 26 Sep 2018, at 16:53, Rob Fulton <rob@cow-frenzy.co.uk> wrote:
>
> Hi,
>
> I'm using nginx to proxy to a host with a rapidly changing dns entry but I can't seem to get the proxy command the re-query dns using the vairable method suggested, the following is a excerpt from my config :
>
> server {
>
> listen 443 ssl;
>
> resolver 127.0.0.1 valid=20s;
> set $proxy_server somehostname.com;
>
> location / {
>
> proxy_pass https://$proxy_server/blue/content$request_uri;
>
>
> I'm using nginx 1.14, watching my dns logs I see no requests following nginx starting up. The upstream_addr value in my nginx logs also doesn't change.
>
> Any suggestions of why this isn't working as expected?
>
> Regards
>
> Rob
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

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

Nginx caching proxy dns name even when using variables

Rob Fulton September 26, 2018 11:56AM

Re: Nginx caching proxy dns name even when using variables

Rob Fulton September 27, 2018 10:30AM

Re: Nginx caching proxy dns name even when using variables

Maxim Dounin September 27, 2018 10:54AM

Re: Nginx caching proxy dns name even when using variables

Rob Fulton October 01, 2018 03:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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