I need to host several WP sites and I wonder if I can use one droplet for all of them. My sites are optimized and cached, so I do not foresee issues with memory/cpu
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!
Yes you can, if you are using apache for the webserver you can add an virtualhost for each domain. Then point your nameservers for each domain to the listing IP of your server.
In addition to the above answers, you could also use the free Cloudflare service and nginx’s fastcgi cache. The combined power of those two things will mean that 99% of requests won’t even touch the backend or database etc. I followed this guide https://rtcamp.com/wordpress-nginx/tutorials/single-site/fastcgi-cache-with-purging/ but I see there’s also a tutorial here now: https://www.digitalocean.com/community/tutorials/how-to-setup-fastcgi-caching-with-nginx-on-your-vps
I managed to hammer the hell out of a small droplet and serve several thousand requests per minute without the load monitor even batting an eyelid, because, as I said, Cloudflare served most of the requests before they even hit the server, and the fastcgi cache served 99% of the rest.
As an added bonus over something like W3TC kind of plugins, with the fastcgi_cache methods, your site will stay up even if your back end/php/mysql goes down! Neat, huh? (Obviously only for static content, not posting comments etc!)
Yes you can! However, what you may want to look out for is:
You can.