【问题标题】:Is possible to have 2 node.js instances that points to the same host:port but different url?是否可以有 2 个 node.js 实例指向相同的主机:端口但不同的 url?
【发布时间】:2013-12-01 16:54:54
【问题描述】:

是否可能有 2 个 node.js 实例指向 localhost:8080 但实例 1 处理所有到达 localhost:8080/instance1 和实例 2 到 localhost:8080/instance2 的请求?

【问题讨论】:

    标签: node.js url routing


    【解决方案1】:

    这听起来像是stagecoach 服务节点的方式。它使用nodejitsu的node-http-proxy

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-01-29
      • 2011-08-29
      • 1970-01-01
      • 2021-10-16
      • 1970-01-01
      • 1970-01-01
      • 2020-07-15
      • 1970-01-01
      相关资源
      最近更新 更多