How to configure multi domain on the server

July 28, 2014 1.3k views

I am flowing all step below

https://www.digitalocean.com/community/tutorials/how-to-migrate-wordpress-from-shared-hosting-to-a-cloud-server-with-zero-downtime

but not able to configure more than one domain on my server. When i am trying to ping the website then getting other website response

ping aviktechnosoft.com
PING aviktechnosoft.com (162.243.155.61) 56(84) bytes of data.
64 bytes from dhrupadconsultants.com (162.243.155.61): icmpseq=1 ttl=64 time=0.032 ms
64 bytes from dhrupadconsultants.com (162.243.155.61): icmp
seq=2 ttl=64 time=0.058 ms
64 bytes from dhrupadconsultants.com (162.243.155.61): icmpseq=3 ttl=64 time=0.050 ms
64 bytes from dhrupadconsultants.com (162.243.155.61): icmp
seq=4 ttl=64 time=0.057 ms
64 bytes from dhrupadconsultants.com (162.243.155.61): icmpseq=5 ttl=64 time=0.054 ms
64 bytes from dhrupadconsultants.com (162.243.155.61): icmp
seq=6 ttl=64 time=0.050 ms
64 bytes from dhrupadconsultants.com (162.243.155.61): icmpseq=7 ttl=64 time=0.061 ms
64 bytes from dhrupadconsultants.com (162.243.155.61): icmp
seq=8 ttl=64 time=0.058 ms

1 Answer

You will have to create virtual hosts if you want to host multiple domains.

For centos, follow this topic.
https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-centos-6

For other OS, virtual hosts

by Etel Sverdlov
This tutorial shows you how to set up a new directory, how to grant the correct permissions, how to add content to a new page, how to turn on virtual hosting, and how to, if needed, set up local hosts. Virtual Hosts are used to run more than one domain off of a single IP address and allows you to run multiple sites off of a single DigitalOcean droplet. This tutorial describes how to set up virtual hosts with Apache on Centos
Have another answer? Share your knowledge.