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?
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.
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 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
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
I just want to confirm that with this process my single droplet [IP] can be pointed to multiple domains?
This comment has been deleted
Thank You Team. I have done it.
Can we done the same i.e. set up of two domain on ubuntu- 18.04.2 ?
Join 1M+ other developers and: