1

I have an InMotion advanced dedicated server. I created a cPanel account and tried to create several subdomains there. I created and pointed multiple sub domains to a single folder public_html/mobile but instead all are pointing to public_html/.

Pointing multiple subdomains to a single folder should not be the issue because my old server (with HostGator) was working fine.

I don't have root access on server unfortunately; even though I don't know where can I fix this issue.

Has anyone faced such an issue and how can I correct this association?

  • Have you tried adding a trailing slash to the end of folder path so it becomes public_html/mobile/? – Ali Hashemi Dec 6 '13 at 18:03
1

I have never seen this before, and so I would guess that there is some missing information.

I would recommend troubleshooting through the process to find out where the problem is at. If the document root doesn't show up in cPanel, then I would check the cPanel error logs when you try adding it.

If it does show up in cPanel, but doesn't appear to show content from the right directory, I would next check the DocumentRoot in that VirtualHost in the httpd.conf file. If it's in httpd.conf properly and still doesn't do what you think it should after an Apache restart, perhaps troubleshoot your .htaccess files in the path to your document root.

If it is incorrect in httpd.conf, try looking in /var/cpanel/userdata/(user)/(domain) to see if it's set properly there. If not, set it manually and/or check the cPanel error logs when re-adding the subdomain. Regardless, try rebuilding httpd.conf (/scripts/rebuildhttpdconf).

Those should be the only files necessary so, one of them should show the problem. If you still have trouble, you may try contacting your host as they should have access to review the situation and plenty of experience troubleshooting that type of issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.