I need to use Node.JS for 3 domains. How can I do it? At the moment I have one application that binds port 80, how to support more than one domains?
I also use cluster module that forks my application in 3 processes.
I need to use Node.JS for 3 domains. How can I do it? At
Share
Probably best way, use connect vhost, which is a connect module.
Or: you can rewrite your URLs with a global URL handler, and then write your constraints based on the rewritten URL: