Which one should I follow for DNS?Create a Virtual Host or update the zone file

April 5, 2014 2.1k views
I am newbie for host configuration. I trying to set up my website in ubunto In this one they said, I should create the Virtual host https://www.digitalocean.com/community/articles/how-to-migrate-wordpress-from-shared-hosting-to-a-cloud-server-with-zero-downtime and this one said I need to update the zone file https://www.digitalocean.com/community/articles/how-to-set-up-a-host-name-with-digitalocean Which one should I follow? I doing both, it gave me the loop back error.
2 Answers
While DNS is a way of telling the rest of the world that what is the IP address where your wordpress site is hosted, a virtual host is the way to tell the incoming request that where from your server's directory structure the site is hosted.

From the information that you have given, you need both.
Can you post the error you get when you do both?
Have another answer? Share your knowledge.