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!

Creating same subdomain name/directory on add-on

Discussion in 'General Discussion' started by hbhb, Aug 19, 2007.

  1. hbhb

    hbhb Well-Known Member

    Joined:
    Dec 1, 2006
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    156
    I have a problem here.

    I have 2 domain on 1 account, which one is called domainA.com & domainB.com is an add-on.

    I created 2 same subdomain name which are assigned to same subfolder!

    subdomain.domainA.com (/public_html/subdomain)
    subdomain.domainB.com (/public_html/subdomain)

    The question is: How do i change domainB subdomain folder to something else? (eg. /public_html/domainb/subdomain)
     
  2. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    166
    Use ftp to change the directory name and then modify the entry in httpd.conf to the new directory name.

    A more simple way, create a new subdomain with the desired name and move the files from the old location to the new location if you can not modify your system.
     
  3. hbhb

    hbhb Well-Known Member

    Joined:
    Dec 1, 2006
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    156
    no that's not what i mean.

    subdomain.domainA.com (/public_html/subdomain)
    subdomain.domainB.com (/public_html/subdomain)

    sub domain for domainA & domainB is pointing to the same directory. How can I point it to a different folder name?
     
  4. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    166
    Edit your httpd.conf and modify the directory for its entry.

    DocumentRoot /home/username/public_html/directory
     
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