A
A
Alexander Wolf2013-08-02 14:42:26
linux
Alexander Wolf, 2013-08-02 14:42:26

Multiple sites on DigitalOcean (Node.js)

Hello! I am planning to buy VDS from DigitalOcean. Please tell me, is it possible to raise several sites (Node.js) on one VDS?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
P
pomeo, 2013-08-02
@mannaro

You should not use that method, the first comment explains why. Plus, this thing has not been written for 5 months.
Everything is actually very simple, without crutches. You throw it in different folders and run it on different ports, it proxy nginx from the outside, that's all.

N
Nikita Gusakov, 2013-08-02
@hell0w0rd

habrahabr.ru/post/139433/ ?
First answer on google for your question

T
Timur Shemsedinov, 2013-09-06
@MarcusAurelius

Try this recipe: npmjs.org/package/impress
Runs a node in cluster mode, on all cores, and can process a whole group of domains at once with a whole group of cluster processes. URL routing through directories, URL rewriting and proxying to another server are also supported. It monitors the configuration on the screw, and if new domains appear in it, it will immediately load a new one and start processing them, without restarting the process. But the most convenient thing is that you do not need to restart the node process when the program code changes, i.e. all handlers for URLs are in their folders, you can change them on the screw, and Impress monitors the files, rereads them and caches them in memory. Here is more details: habrahabr.ru/post/182714/

I
Ivan Boldyrev, 2013-11-17
@iboldurev

Yes, it's possible, I have 2 sites on my server . If interested in the implementation, please contact.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question