Mobile app version of vmapp.org
Login or Join
Mendez628

: Subdomain pointing to wrong folder 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

@Mendez628

Posted in: #Cpanel #Folder #Subdomain

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Mendez628

1 Comments

Sorted by latest first Latest Oldest Best

 

@Murray155

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme