Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Can users have both a Domain and sudirectory?

Discussion in 'General Discussion' started by AngusB, Dec 12, 2005.

  1. AngusB

    AngusB Member

    Joined:
    May 17, 2005
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    151
    Perhaps I posted this in the wrong section:

    I am setting up a system that will offer members of a group web hosting. Some will have domains some will not, but I will need them all to load under similar simple addresses as well as their own domain if they have one. I was wondering if WHM/Cpanel would be able to do the following:

    I want some users that have their own domains to have a normal cpanel account. Their pages will appear under their domain, but I also need their pages to appear as a subdirectory of my domain.

    I also want users that do Not have their own domain to just appear as a subdirectory of my domain, and to have access to a simpler form of the cpanel gui.

    I know i can give each a different skin with access to just the features they should have in the gui, I am mostly interested in if cpanel will allow the two forms of page access.
    So for example:

    user1:
    pages appear as http://www.someuserdomain.com and http://member.mydomain.com/user1/ (or http://member.mydomain.com/~user1/ or similar)
    has Cpanel web gui access with email, FTP, stats, etc.

    user2:
    pages only appear as http://member.mydomain.com/user2/
    has Cpanel web gui access with only the web based FTP & stats.

    user3:
    pages appear as http://www.anotheruserdomain.com and http://member.mydomain.com/user3/
    has Cpanel web gui access with email, FTP, stats, etc.

    user4:
    pages only appear as http://members.mydomain.com/user2/
    has Cpanel web gui access with only the web based FTP & stats.
     
  2. fwwebs

    fwwebs Well-Known Member

    Joined:
    Feb 16, 2004
    Messages:
    329
    Likes Received:
    0
    Trophy Points:
    166
    Each cPanel account can be access via http://anydomain_on_the_server/~username if mod_userdir is enabled. WHM is capable of creating a cPanel account for a sub-domain of an existing domain, that would be accessible via http://anydomain_on_the_server/~username as well. These domains will render pages within each users /home(2)/unique_username/public_html directory, not /home/yourusername/public_html/user. So as long as you're not requiring each user to reside within your public_html directory, it should meet your needs. One issue may be rendering the proper stats for a sub-domain of your domain. Many times cPanel will not display the stats of a sub-domain in that cPanel, but will display them in the main domains cPanel under subdomain stats.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice