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!

how to create a add on domain from backend

Discussion in 'General Discussion' started by nicy, Feb 10, 2008.

  1. nicy

    nicy Registered

    Joined:
    Feb 9, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    51
    plz help me for creating a add on domain from back end . what are the file entries i have to change
     
  2. teksupportrena

    Joined:
    Feb 8, 2008
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    51
    Hi

    This is as similar as you create a subdomain from the back end.

    As it is a addon domain you will have the user. Add on domain is a subdomain.
    For eg: SUBDOMAIN: addon.maindomain.com
    then ADDONDOMAIN : addon.com

    These are the things you have to do:
    1. DNS
    Create the dns entries.
    a) /etc/named.conf
    ~~~~~~~~~~~~~
    zone "addon.com" {
    type master;
    file "/var/named/addon.com.db";
    };
    ~~~~~~~~~~~
    b) Create the db file in the path: /var/named/addon.com.db

    2. HTTP.CONF
    ~~~~~~~~~~~~~~
    Create the entry in http.conf.
    It is similar to the entry of subdomains. Set the DocumentRoot to the directory of addon domain,
    ~~~~~~~~~~~~
    DocumentRoot /home/user/public_html/addon
    ~~~~~~~~~~~
    You have to add an additional entry like this.
    ~~~~~~~~~~
    ServerAlias addon.maindomain.com addon.com
    ~~~~~~~~~~

    3. CPANEL CONFIGURATION FILES.
    a) /var/cpanel/users/username
    Add the entries like this
    ~~~~
    DNS18=addon.maindomain.com
    DNS19=addon.com
    ~~~~~~
    b) /etc/userdomains
    Add the entries like this
    ~~~~
    addon.maindomain.com: username
    addon.com: username
    ~~~~

    c) /etc/localdomains
    Add the entries like this
    ~~~~
    addon.maindomain.com
    addon.com
    ~~~~

    d) Create a file /etc/valises/addon.com

    e) Create a file /etc/vfilters/addon.com
     
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