Addon Domain not behaving as expected

Category: Cpanel

ammonhaggerty
Asked:
2013-05-17 5:55 pm EST

Hits: 489
I'm trying to add additional domains to my account and I may be doing something wrong. My understanding is that this happen through the "Addon Domain" function of cPanel. When I do this, it adds a folder within my public_html folder and creates a subdomain of my primary domain. When I go the the URL I get a blank page, but when I go to the subdomain url I get the expected content.

Ideally, all my domains, including my primary domain, will all exist at the same hierarchy since some of the libraries I use need a consistent relative path. I'm hoping this nested domain path is just a side effect of something I'm doing wrong.

Thanks for your help.

You must login before you can ask a follow up question.

You must login before you can submit an answer.

Best answer chosen by User

0

Arn
Staff
17,716 Points
2013-05-17 6:31 pm EST
Hello Ammonhaggerty,

Judging from the description you have provided, it first appeared that you were not using a registered domain name for the add-on domain that you creating. However, upon further inspection, the domain name was okay, and it was working the way it should.


I checked this on your account, and the domain name that you used looks like it was just pointed to our servers as of yesterday. The change for this does require up to 24 hours (this is called propagation time), but I checked it both with a ping test tool that checks the domain on servers all over the world, and displayed the page in my browse after checking the WHOIS information. When I display the page, I am seeing your test text of "hi" , so it's definitely working.

You may need to clear your browser cache. Your browser or network might be looking at a cached version of the domain.

Try this and let us know if you still need any further assistance!

If you have any further questions, please leave a comment with more details and and we will be happy to review the issue for you. If we answered your question and it's a great solution for you, please make sure to mark the answer as the BEST answer. Or please leave a comment or note of thanks so that we know your issue is resolved or ongoing.

Arnel C.
Community Support Team

You must login before you can post a comment about this answer.

Ok, so it seems it was a caching issue. So I have a couple questions now:
1) Why did it both add a new domain AND add a subdomain to my account domain? Can I add a new domain without adding the subdomain?
2) Is there any way to have my account domain exist in the same file structure as all the added domains. At the moment it look like this:
root
public_html <- account domain home
new domain <- nested

Thanks!
ammonhaggerty
16 Points
2013-05-18 12:13 am EST
Hello AmmonHaggerty,

In answer to your questions:

1) Why did it both add a new domain AND add a subdomain to my account domain? Can I add a new domain without adding the subdomain?

When you use the Addon domain option, cPanel has to keep the created structures within the public_html folder (the web root) of your account. The way it does this is by creating a folder in the primary domain's folder (another name for the web root). Since it is a subfolder to the primary domain, it will be considered a subdomain. A subdomain is simply a subfolder under the web root. So, in answer to your question, no, you cannot add an add-on domain without creating a subdomain.

2)On a shared server, you can request the change of a web root also referred to as document root. If you do so, you can then have separate folders for your add-on domains that don't fall under the primary domain. They will still fall under the public_html folder though.

So now the folder structure will look like this:

public_html > primary_domain_folder
public_html > add-on_domain_folder
public_html > add-on_domain2_folder

Review the link for the request that I included above. All document root change requests need to be emailed to technical support in order for it to be changed.

If you have any further questions, please leave a comment with more details and and we will be happy to review the issue for you. If we answered your question and it's a great solution for you, please make sure to mark the answer as the BEST answer. Or please leave a comment or note of thanks so that we know your issue is resolved or ongoing.

Arnel C.
Community Support Team
Arn
17,716 Points
Staff
2013-05-20 11:11 am EST
Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!