What is the most suitable way to host multiple websites in linode?

I just purchased the basic linode package, and I wonder what to do next. I have 5 sites with light traffic hosted on several providers, and I want to host them in linode. The question arises:

Should I put all sites in separate folders in the main 20 GB lineate and use virtual hosts to send them from different domains or create a link for each website? I can understand that a lot of space is lost when you create several linodes, because you copy Linux system files over and over (and swap space). On the other hand, if a site is attacked or failed, others remain unchanged.

+4
source share
1 answer

I have the same situation, and the short answer is that I recommend using one linode and using virtual hosting at the web server level to handle traffic.

I have 6 websites running on my Linode right now (and over the last 5 years), 4 Ruby / Rack applications, one PHP application and one simple static HTML application. Since in racks each one starts a different instance of the application, if someone does not work, the rest remain alive.

I'm more concerned about memory / replacement due to exceeding the expected amount of traffic or memory leaks. I recommend installing monit and setting it up to restart processes if memory problems occur.

+5
source

All Articles