The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

CNAME records and addon/parked domains

Discussion in 'General Discussion' started by Joe Goldman, Oct 18, 2011.

  1. Joe Goldman

    Joe Goldman Member

    Joined:
    Oct 18, 2011
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Coffs Harbour, New South Wales, Australia
    cPanel Access Level:
    DataCenter Provider
    Hi *,

    Interesting problem i've run into, that I couldn't find many definitive answers for. On our server we have 2 websites as seperate accounts, lets call them domain1.com and domain2.com. domain1.com set up a subdomain test.domain1.com, then set up a CNAME record on domain2.com for test.domain2.com to point to test.domain1.com.

    This is all good and well done in cPanel, however we need the host header to be recognised on the test.domain1.com account. When i go to add test.domain2.com either as a parked or addon domain (with the same webroot as test.domain1.com), then it throws an error saying that test.domain2.com is on another account, which technically it is, but only as a CNAME record. Is this normal behaviour? What would be the steps required to achieve what I'm after? A http redirect is out of the question, as they client does not want the URI to change, when someone types in test.domain2.com, they want it to stay test.domain2.com not become test.domain1.com, hence the use of a CNAME.

    All help is appreciated :)

    Thanks,
    Joe Goldman
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    The CNAME entry is not required in this case. Instead, simply add "test.domain2.com" as a parked domain. This will allow "test.domain2.com" to remain as the URL address in the browser, and point to the same document root as the domain name it is parked on.

    Thank you.
     
  3. Joe Goldman

    Joe Goldman Member

    Joined:
    Oct 18, 2011
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Coffs Harbour, New South Wales, Australia
    cPanel Access Level:
    DataCenter Provider
    Hi Michael,

    I attempt to do that, even after removing the cname record from domain2.com, yet i still get an error trying to add test.domain2.com as a parked domain to domain1.com, it tells me "Error from park wrapper: test.domain2.com is controlled by another user. You cannot park it."

    Should I log an official ticket for this?

    Thanks,
    Joe
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Yes, feel free to open a ticket for this so we may check further. You can use the following URL:

    Submit A Ticket

    Please post the ticket number here so we may track the issue.

    Thank you.
     
Loading...

Share This Page