How do I host multiple Node.js sites on the same IP/server with different domains?

前端 未结 12 803
轻奢々
轻奢々 2020-11-28 01:03

I have a linux server with a single IP bound to it. I want to host multiple Node.js sites on this server on this IP, each (obviously) with a unique domain or subdomain. I wa

12条回答
  •  离开以前
    2020-11-28 01:12

    Use nginx as a reverse proxy.

    http://www.nginxtips.com/how-to-setup-nginx-as-proxy-for-nodejs/

    Nginx brings a whole host of benefits to your applications in the form of caching, static file handling, ssl and load balancing.

提交回复
热议问题