Report this

What is the reason for this report?

Subdomain with different DocumentRoot

Posted on March 25, 2015

I’m trying to set up a subdomain of blog.mysite.com which will direct to a DocumentRoot different from the default DocumentRoot set up to show at mysite.com.

I have the VirtualHost set up for this, and I have my DNS records set up for this, but it still appears to not be working.

Any suggestions on troubleshooting?



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.

Hey there,

You can create a virtualhost configuration just for blog.mysite.com with it’s own DocumentRoot location. Here is a tutorial for Ubuntu and we have another tutorial that focuses on CentOS.

Happy coding,

Jon Schwenn Platform Support Specialist DigitalOcean

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.