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.

Domain / Hostname / Subdomain confusion.....

Discussion in 'General Discussion' started by golfanatic, Feb 3, 2014.

  1. golfanatic

    golfanatic Member

    Joined:
    Feb 3, 2014
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Dear Forum,

    I am new to cPanel and WHM and struggling with the host/domain settings in both WHM and cPanel, background is as follows:

    I have a rootserver and two different domains, lets say domain1.com and domain2.com.
    Under public_html I have created two subdirectories which include the website data for these two domains, the subdirectories are named /domain1 and /domain2

    I understood, that by creating a new addon-domain in cPanel I can point a domain to the directories mentioned above.

    My questions are as follows:

    1) In the scenario given above, what host & domain names could (for example) be used for WHM and the cPanel account itself, given the fact, A) that both domains should be used as addon-domains as described above, and B) that I do not have more domain names registered, so I do not have an additional domain name available for WHM itself.

    2) How to create email accounts like mail.user@domain1.com and mail.user@domain2.com, when I used example.domain1.com as domain for the cPanel (Reseller) account?

    Thank you in advance for your kind support.

    Best regards
    Ralph
     
  2. golfanatic

    golfanatic Member

    Joined:
    Feb 3, 2014
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Important additional explanatory info:

    I want

    1) www.domain1.com to point to subdirectory public_html/domain1
    2) www.domain2.com to point to subdirectory public_html/domain2
    3) create a mailaddress like info@domain1.com
    4) create a second mailadresse like info@domain2.com


    ..that should be possible, shouldn't it ?
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    1. The hostname of your server can be associated with either of these domain names, however do not add the hostname as a subdomain or addon domain name. Setup the hostname via "Change Hostname" in WHM with something like "server1.domain.com".

    2. You can create email accounts using the "Email Accounts" option in cPanel after adding the domain names as addon domain names to the account.

    Thank you.
     
Loading...

Share This Page