Reverse proxy with dynamic destination

hmac nginx-forum at
Sun Nov 25 21:52:47 UTC 2018

Hi, I have an issue i could use some help with and would appreciate any
advice. I find reverse proxying using a variable works for 9 out of 10
devices on my network, except for one device. For this one device, if I
statically set the destination, everything works fine! I have tried almost
every config option out there but can't get it working. Running on Ubuntu
16.04, Nginx 1.15.6. Strangely after updating from 1.15.5->1.15.6 it worked
once (until reboot i think) after enabling proxy_ssl_session_reuse which is
a new feature in 1.15.6 so it may be a bug relating to this. Disabling SSL
on the device also works. 

example config snippet: 
  set $myupstream;
  proxy_pass $myupstream;

debug logs for working and not working found below:


Posted at Nginx Forum:,282118,282118#msg-282118

More information about the nginx mailing list