Can I run two domain on single Ip address

September 25, 2019 137 views
WordPress Apache

Hello Team,

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

7 Answers

Hi,

Yes, you can.

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

https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-16-04

For WordPress Installation
You can follow these steps. This is 16.04 https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lamp-on-ubuntu-16-04

If you have installed 18.04 you can follow this instruction https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lamp-on-ubuntu-18-04

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

Have another answer? Share your knowledge.