Here is my situation. I am trying to create 3 new sub domains (one.example.com, two.example.com, three.example.com) using hosting provider's cPanel interface and it creates 3 different document roots. It does not allow to change the root to a folder within another subdomain.

So I am now struck. I want to use Domain Access but it requires all of the sub domains to point to the same document root.

What is the solution to this?

Thanks in advance.

Comments

DynamicFred’s picture

DA doesn't actually use the directories. It uses the IP address instead, so there's no issue with document roots. There's only 1 settings.php file used and that's placed in your default domain.

Rather than adding sub domains and their folders, I use aliases instead. No document roots are created, and I have no problems with the site. Perhaps that's the way to go?

agentrickard’s picture

Right. If you can point the IPs to the same root, you should be fine.

solutiondrop’s picture

FYI in case it is helpful for anyone...
I have a Managed DNS account with dnsmadeeasy.com. It's a DNS failover solution. I purchased it after the DNS server used for my Softlayer account failed for over 4 hours. if you are using Domain Access and have a DNS failover solution all you need to do is set up an A Record for the subdomain pointing to the correct IP and you never have to touch cPanel.

agentrickard’s picture

Status: Active » Closed (works as designed)