【发布时间】:2011-09-20 14:50:36
【问题描述】:
我正在尝试将流量从我的测试应用的 /api/* url 重定向到我在 Heroku 上托管的 api。
因此,localhost/api/hello 应该代理到 testapp.heroku.com/hello 并返回响应。
在 localhost 到 localhost 上使用 node-http-proxy 可以完美运行,但是当我将它指向 myapp.heroku.com 时,我收到此错误:
Heroku | No such app
There is no app configured at that hostname.
Perhaps the app owner has renamed it, or you mistyped the URL.
我感觉是 Heroku 的路由系统在伪造我的代理请求,我还没有找到解决方法。有什么想法吗?
【问题讨论】:
标签: node.js proxy heroku http-proxy