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 postsTL;DR
The following is the TLDR that I got from the Digital Ocean discussion:
* a.com / the ip of your droplet (of droplet a.com) / your a.com droplet.
Now for the b.com domain do exactly the same.
* b.com / the ip of your droplet (of droplet a.com) / your a.com droplet
This will result in now having 2 entries the Domain section
Then add A/C/MX etc records for b.com 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.
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.
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…
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.
Enter your new domain on the next page. You can add multiple domains here by repeating this step.
Choose your droplet that will host your domain. And, click on your newly added domain to configure the records as needed.
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?