Re: Using correct variable for proxy_pass

2018-11-21 Thread Rob Fulton
Hi, On 19/11/2018 13:12, Maxim Dounin wrote: If you want to use variables in the proxy_pass and at the same time want to preserve effect of nginx internal URI changes such as due to rewrites, consider using an empty URI compontent in the proxy_pass. For example: set $backend "http://examp

Using correct variable for proxy_pass

2018-11-19 Thread Rob Fulton
Hi, I'm trying to work out the best way to setup the proxy_pass url and which variables to use. Initially we were using proxy_pass to proxy to a single https URL, we used a rewrite to change https://hostname/ to https://hostname/index.html. We've recently discovered issues due to the single

Re: Nginx caching proxy dns name even when using variables

2018-10-01 Thread Rob Fulton
Hi, On 27/09/2018 15:53, Maxim Dounin wrote: Hello! On Thu, Sep 27, 2018 at 03:27:03PM +0100, Rob Fulton wrote: 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

Re: Nginx caching proxy dns name even when using variables

2018-09-27 Thread Rob Fulton
limitation? Regards Rob > On 26 Sep 2018, at 16:53, Rob Fulton 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 follow

Nginx caching proxy dns name even when using variables

2018-09-26 Thread Rob Fulton
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_