I am struggling to add subdomain for my site

December 10, 2015 525 views
LAMP Stack DNS CentOS

I've setup DNS in DigitalOcean control panel for new subdomain and also configured httpd. I followed this tutorial: https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-centos-6
But after restarting apache, my main site is pointing to subdomain's directory.
Please help.

Thanks,
Neo.

2 Answers

Please give me your main website directory and your sub-domain directory.
Also post your Apache Virtual Host.

Thanks for your answer. I was able to sort out the problem.

Have another answer? Share your knowledge.