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

Choose one of:

  • Use some other server (like nginx) as a reverse proxy.
  • Use node-http-proxy as a reverse proxy.
  • Use the vhost middleware if each domain can be served from the same Connect/Express codebase and node.js instance.

Leave a Comment