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.

Set subdomains of another domain as addon, but keep main domain

Discussion in 'General Discussion' started by hoseng, Sep 28, 2016.

Tags:
  1. hoseng

    hoseng Registered

    Joined:
    Feb 21, 2016
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Iran
    cPanel Access Level:
    Root Administrator
    Hello
    As you see I couldn't shorten the topic more than that.
    I want to set all subdomains of one domain as addon to point to some directory on my host, but don't want to change it's main domain execution.
    In other word, when you type another-domain.com you should see the site that it's designer, designed. But when you type x.another-domain.com it should launch the directory defined in addon domains.
    Am I clear? Is it possible to do this?
    Thanks i advance
     
    drfrankensteins likes this.
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    This should be the default behavior. Simply create a new addon domain name for each specific subdomain that you want to separate with it's own document root.

    Thank you.
     
Loading...

Share This Page