Can a NodeJS webserver handle multiple hostnames on the same IP?

Posted by Matthew Patrick Cashatt on Programmers See other posts from Programmers or by Matthew Patrick Cashatt
Published on 2012-03-31T18:18:47Z Indexed on 2012/03/31 23:41 UTC
Read the original article Hit count: 268

Filed under:
|
|
|
|

I have just begun learning NodeJS and LOVE it so far. I have set up a Linux box to run it and, in learning to use the event-driven model, I am curious if I can use a common IP for multiple domain names.

Could I point, for example, www.websiteA.com, www.websiteB.com, and www.websiteC.com all to the same IP (node webserver) and then route to the appropriate source files based on the request? Would this cause certain doom when it came to scaling to any reasonable size?

© Programmers or respective owner

Related posts about node.js

Related posts about apache