Open i8ramin opened 9 years ago
I was having the same issue. The problem is that nginx is automatically resolving http://my-other-app.herokuapp.com
, so when you use $http_host
, it's setting the entire list of IPs that this resolves to. I was able to solve this by explicitly setting the Host
header to http://my-other-app.herokuapp.com
. Hope that helps!
The above solution is not correct. It is very close.
You have to set the Host
header to my-other-app.herokuapp.com
Without the http://.
Phew, that took me a while.
Use this:
proxy_set_header Host my-other-app.herokuapp.com
Hi, wondering if its possible to use this setup to proxy certain paths to another heroku app. For example, the following nginx.conf works locally, but fails when deployed to Heroku.