Re: Using correct variable for proxy_pass

2018-11-21 Thread Maxim Dounin
Hello! On Wed, Nov 21, 2018 at 08:53:40AM +, Rob Fulton wrote: > 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

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

Re: Using correct variable for proxy_pass

2018-11-19 Thread Maxim Dounin
Hello! On Mon, Nov 19, 2018 at 09:47:32AM +, Rob Fulton wrote: > 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 > ht

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