Report this

What is the reason for this report?

I am struggling to add subdomain for my site

Posted on December 10, 2015

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.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.