Question

How do you deploy multiple websites on the same Ubuntu droplet

I have an existing website on my droplet. Since it is lightly loaded I want to deploy another website on this same droplet. I am looking for an app note or instructions.


Submit an answer


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!

Sign In or Sign Up to Answer

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.

Bobby Iliev
Site Moderator
Site Moderator badge
February 11, 2025

Hi there 👋

You can definitely host multiple websites on the same Ubuntu droplet using either Nginx server blocks or Apache virtual hosts, depending on which web server you’re using.

Here are some tutorials that walk you through the setup:

If you’re using Docker, this video might help: YouTube: Hosting Multiple Websites with Docker.

Let me know if you have any questions!

- Bobby

KFSys
Site Moderator
Site Moderator badge
February 11, 2025

Heya @a96586b9b23547c29c6be618017cd9,

Apart from what has been said, you can deploy it using docker and a docker container for easier management in the future. You can use Docker Compose or individual Docker containers with an Nginx reverse proxy to manage multiple sites efficiently.

Having said that, this is a bit more complex that the standart setup of installing either Apache or Nginx and configuring it server your files.

alexdo
Site Moderator
Site Moderator badge
February 11, 2025

Heya, @a96586b9b23547c29c6be618017cd9

Depending on your current setup, if you use web-server as Apache or Nginx you can create another virtual host for the new site/domain and spin up the site in the corresponding root directory.

If you share more details about the setup we can give you the exact steps on how to setup this.

Regards

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.