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.

usernames as sub domain of a user's domain

Discussion in 'General Discussion' started by mgrant, May 4, 2013.

  1. mgrant

    mgrant Registered

    Joined:
    May 4, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    When I go to add a domain to a cpanel account, it wants to create a new username for the ftp account for that domain. It takes that username and makes a sub-domain out of it like:

    Code:
    username.example.com
    so this became the ftp username for this new domain. What strikes me as odd though is that this also became a real sub-domain of example.com. Why did it need to do that? Is there some tweak to hide these extra domains or some setting so that it does not create a sub domain?

    At first I just ignored these extra sub-domains but the problem is that they start to get in the way and become confusing. When the user goes to create a mail account or a forwarding address, they are presented with username.example.com in the list of domains. It becomes clutter.

    It makes me wonder if the cpanel/whm is actually configured correctly.

    Michael Grant
     
  2. mgrant

    mgrant Registered

    Joined:
    May 4, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Oops, I see I must have pressed the submit button twice on this.

    No takers on this? Can anyone explain to me the logic behind what's going on? Why is it creating these sub-domains?

    Michael Grant
     
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,448
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You mean, addon domain here I assume.
    Addon domains need a user to login with, user@domain.com is that users login.

    If I understand you correctly, that's how the system works. If you wanted to change that, you'd want to change this setting:
    WHM » Server Configuration » Tweak Settings, Domains tab.

    With that setting changed to allow subdomains outside of public_html, when you go to create the addon domain, look closely at the Document root section of the form. When you type in the new addon domain, the doc root is auto filled. You can edit that path before you actually add the addon domain, removing the public_html/ part.

    The more domains you add, the more "clutter" you can expect. The above change may be helpful, but the domains on the account will still be there. Giving these domains their own cPanel account might be more useful and less cluttered.


    Seems fine to me.
    Addon Domains - cPanel Documentation

    HTH!
     
Loading...

Share This Page