Can I run two domain on single Ip address

Posted September 25, 2019 19.8k views

Hello Team,

I have a query. I have one Ip address i.e. . I want to run two domain and on same IP. Is it possible to do. My both applications are in wordpress. I am newbie. Can you please help me?

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.

Submit an Answer
7 answers


Yes, you can.

You can follow this guide for more than 1 domain if you’re using ubuntu. This is for Ubuntu 16.04.

For WordPress Installation
You can follow these steps. This is 16.04

If you have installed 18.04 you can follow this instruction

by Brennen Bearnes
The Apache web server is the most popular way to serve web content on the internet. Apache has the ability to serve multiple domains from a single server by using a mechanism called "virtual hosts". If a virtual host is configured correctly for each domain, the web server can correctly route traffic to the appropriate files based on the domain name requested. In this guide, we'll demonstrate how to configure Apache virtual hosts on an Ubuntu 16.04 server.

Can we done the same i.e. set up of two domain on ubuntu- 18.04.2 ?

Thank You Team. I have done it.

Hi team

I just want to confirm that with this process my single droplet [IP] can be pointed to multiple domains?

I had a slightly different problem. I installed the panel on ubuntu server, everything went smoothly without errors. But I can’t figure out how to add several domains to one ip. By default, the panel had one domain (server) with ip xxxxx (this is, as you understand, the local server ip) in the root / home / admin / web, respectively, there is a folder with the name of this domain (server) when the site is placed in it, everything works fine .. That is, when the local ip server ip xxxxx opens in the browser, the site itself opens. But when you create other ip domains, you get a different uuuuu with which it is the same for all the new domains that I create, folders with new domains are created normally, but these domains do not open in the browser, what is the problem and how to create 5-10-100 on one ip sites, while I’m interested in creating local sites, I plan to delegate real domains later.
In general, the simplest option helped me, it is to place sites on separate domains in separate folders. True, I was looking for this solution for a very long time