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.

Editing Subdomain roots

Discussion in 'General Discussion' started by nicoliver, Nov 6, 2006.

  1. nicoliver

    nicoliver Registered

    Joined:
    Nov 5, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hi,
    I am currently trying to find a way of creating manual paths for subdomains within a user account.
    When adding a subdomain it currently auto creates the relevant folder within the user account. cPanel then sets the root of the subdomain to this folder.
    I would like to set the root of the subdomains to the public_html folder of the account.

    If you have any suggestions on how to do this it would be much appreciated.

    thanks
    nic
     
  2. david510

    david510 Well-Known Member

    Joined:
    Aug 22, 2004
    Messages:
    473
    Likes Received:
    0
    Trophy Points:
    16
    If you want the subdomains to resolve from the public_html itself, you will need to manually change the document root of the subdomain in the virtualhost entry inside the http.conf file in the server to /home/username/public_html.

    David
     
  3. nicoliver

    nicoliver Registered

    Joined:
    Nov 5, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    heya
    couldn't find the file in the public_html folder but i did find it somewhere else on the server..
    Really appreciate your help! Thanks :)
     
  4. david510

    david510 Well-Known Member

    Joined:
    Aug 22, 2004
    Messages:
    473
    Likes Received:
    0
    Trophy Points:
    16
    the file to be edited is /usr/local/apache/conf/httpd.conf. if you dont have root access to the server, inform the hosting company of your domain.
     
Loading...

Share This Page