Coming from a shared hosting service I am used to organizing all my sites in different folders and configuring each domain to point to the folder where the site is contained.
For example
www.site1.com -> /site1
www.site2.com ->/site2
I have so far moved one of my sites over to DO but not sure if the second site should be on a separate droplet or if I should just set up a virtual host on the droplet already created.
Regardless of how much traffic each site gets, what are the advantages/disadvantages of creating a droplet for each site vs hosting both sites on the same droplet?
Would it cost more to have each site on a separate droplet vs both sites on a single droplet (my guess is yes, plus maintaining multiple droplets could be a pain)?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Unless one or more of those sites is a CPU hog, has heavy traffic or is particularly memory intensive, there isn’t really any need to put them on separate droplets. I am currently hosting three sites serving mostly static HTML with some PHP and a couple of small Ruby applications on a 512 MB droplet using Nginx. I’m showing 17 KB of memory free with 0 of my swap space being used. To keep the load down a little bit, I am using Cloudflare’s free caching service.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.