qJake
qJake

Reputation: 17139

How do I create an HTTP server with Node.js on a DreamHost VPS running Apache?

I've installed Node.js on my DreamHost VPS (basically a virtual machine), but my VPS hosts a lot of other websites using Apache. How can I bind an HTTP listener to a specific domain using Node.js, so that when I visit "mynodejsdomain.com", I get responses from my Node.js code, but when I visit "myotherdomain.com", I get responses from Apache/PHP?

Upvotes: 1

Views: 1153

Answers (1)

qJake
qJake

Reputation: 17139

Turns out I needed to tell Apache to forward the requests for that domain, and DreamHost provides a nice frontend for mod_proxy:

http://wiki.dreamhost.com/Proxy_Server

Thanks, CodeCaster!

Upvotes: 1

Related Questions