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.

Sub domain from folder to sibling folder

Discussion in 'General Discussion' started by opolychr, Jul 6, 2011.

  1. opolychr

    opolychr Registered

    Joined:
    Jul 6, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hello guys and girls,

    I have one hosting account and multiple domains one for each subfolder.

    I want to create a subdomain for one of my domains but the thing is that the folder that I want the subdomain to point to is a sibling folder to the domain. This has an access problem as when I visit the subdomain link I get the cgi-bin default page.

    Is it true about the access problem or is it a misconfiguration that I did?
     
  2. ServerMascot

    ServerMascot Member

    Joined:
    Jan 17, 2011
    Messages:
    13
    Likes Received:
    1
    Trophy Points:
    1
    Not sure but check if the subdomain is resolving to the server correctly then please make sure that the IP given in the apache virtual host for the subdomain should be same as it resolves to.

    You can change the Document root of the subdomain in the httpd.conf file, make sure that the document for the subdomain is correct.
     
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,463
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You don't need or want to be editing the httpd.conf for this sort of thing.

    I take it you mean you have addon domains added to your main domain? An addon domain creates a folder like this.
    You want to create a sub.domain on one of these addon domains?
     
Loading...

Share This Page