【发布时间】:2014-04-17 08:31:20
【问题描述】:
在 node.js 中处理虚拟主机的最佳做法是什么?
我需要将域路由到每个单独的 http 服务器..
http://api.localhost:8080 => localhost:9000
http://www.localhost:8080 => localhost:9001
https://secure.localhost:8080 => localhost:9002 // this request is HTTPS
我正在使用 express http
【问题讨论】:
-
This question 可能有您想要的答案。
-
无法让
http-proxy工作stackoverflow.com/questions/22360318/… -
我使用 node-http-proxy 并且在这篇文章中有一些有用的链接:stackoverflow.com/questions/12652863/…
标签: node.js express virtualhost