How To Host Multiple Domain In One Droplet In DigitalOcean VPS

Sometimes we need to collect our website in one machine or VPS for easy maintenance at Digital Ocean. Here is TLDR: Note...

· 2 min read >

Sometimes we need to collect our website in one machine or VPS for easy maintenance at Digital Ocean. Here is TLDR:

Note for TLDR, it’s based off the Internet slang “tl;dr,” which stands for “too long; didn’t read.” The expression is often used for short summaries of long posts


The following is the TLDR that I got from the Digital Ocean discussion:

When I first set up I used the ‘Add a Domain’ section:

* / the ip of your droplet (of droplet / your droplet.
Now for the domain do exactly the same.
* / the ip of your droplet (of droplet / your droplet

This will result in now having 2 entries the Domain section

Then add A/C/MX etc records for according to needs.

After doing a search on google, only the above answers were satisfying and applicable to me. Of course, there are thousands of answers on google or youtube.

Another story  Simple Guidance For You In Connecting Android Emulator To Localhost

And here’s the rest of the story …

Domain and Droplet

What is Digital Ocean?

Digital Ocean (DO) is a VPS service provider with a package that is quite flexible and consists of various prices. Many people like this VPS because of its simple and user-friendly interface.

If you don’t have a Digital Ocean account and need one, you can sign up here using my link to get $100 credit over 60 days.

What is VPS?

A Virtual Private Server (VPS) is a private server whose total resources are only for one user. They don’t influence each other.

Users can fully manage all configurations and resources available on the VPS and do whatever they want.

The VPS uses the virtualization technology of physical server hardware which is divide into several different resources.

Another story  Installing Lets Encrypt Is Not Difficult At All! You Just Need To Know Ubuntu Version And This Command

This distribution uses virtual software which allows multiple VPSs can run on one physical server.

What is Domain?

A domain is a name to identify a network without using the internet protocol (IP), considering that IP usually uses numbers that are difficult to memorize.

In the internet world, the domain is an important aspect of a website. It functions as an address that makes it easier for visitors to find the desired information.

What is Droplet?

Droplet is a specific term for VPS instances in the DigitalOcean environment. One Droplet = 1 VPS. Next, we need to select an image to install.

This image can be Ubuntu, Debian, CentOS, or FreeBSD that shows the standard operating system and applications on a VPS.

Lets continue to host multiple domain…

Add Domain

Droplet Menu

Log in using your account at Digital Ocean. I assume you’ve created a droplet, click the three horizontal dots to the right of your droplet.

Another story  Rest API Tutorial Php: Creating Standalone And Simple API For Beginner

DigitalOcean add a domain

Enter your new domain on the next page. You can add multiple domains here by repeating this step.

DigitalOcean enter domain

Add Record

Choose your droplet that will host your domain. And, click on your newly added domain to configure the records as needed.
Digital Ocean configure record

If nothing goes wrong, the domain you added must be active. You can reach it using your browser. For more reference on adding and managing records, you can visit this Digital Ocean records link.

And don’t forget to configure your server document root for each created domain. You can use SSH to log into your server and configure Apache or Nginx and make sure everything is working as expected.

Do you want to use one droplet for multiple domains?

One Reply to “How To Host Multiple Domain In One Droplet In DigitalOcean VPS”

  1. I really like what you guys are usually up too.
    This sort of clever work and exposure! Keep up the awesome
    works guys I’ve incorporated you guys to my personal blogroll.

Leave a Reply

Your email address will not be published. Required fields are marked *

Right Menu Icon