Single node.js http server accepting connections on multiple hostnames

前端 未结 2 2045
南笙
南笙 2020-12-28 23:58

Is it possible to create single http server in node.js which will accept connections on multiple hostnames? For example: I have a number of subdomains (x1.domain.com, x2.dom

2条回答
  •  佛祖请我去吃肉
    2020-12-29 00:51

    It looks like it's not (natively) possible unless some kind of proxy or extra IP address for certain (sub)domains is used.

提交回复
热议问题