Hello guys, Is it possible to run like 2 or 3 websites on 1 droplet or do I need to buy another droplet with for each website? If its possible how do I manage this? Does it work like virtual hosts ? Any tutorial or feedback would be nice :)
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!
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Yes it is possible.
If using nginx https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-14-04-lts
Apache https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-12-04-lts
What about MX records, how do you set up for multiple domains hosted on one droplet?
Hello there,
You can host multiple sites (domain names) on a single droplet, this can be achieved using virtual hosts.
The process is really simple, all you need to do is to spin up the droplet via the app marketplace and then manually add the virtual hosts for the other sites.
We have an article that covers the process, which you check here:
https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-18-04
Hope that this helps! Regards, Alex