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.

How to direct my domain

Discussion in 'General Discussion' started by season, Jun 22, 2009.

  1. season

    season Registered

    Joined:
    Jun 22, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    How could I direct the domain to other place ?
    For example: the domain was direct to /home/aa/public_html,
    now I want to lead it direct to /home/aa/myweb.
    what should I do ?
     
  2. chinmay

    chinmay Well-Known Member

    Joined:
    Jul 22, 2008
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    localhost
    You can change the Document Root for the domain in the httpd.conf file. If you do not have the SSH access to the server, please ask your hosting provider to make the changes.

    If you have root access to the server, login to the server and open the file

    Find for the domain
    In the VirtualHost entry for that domain change it from
    Save and Exit.

    Restart httpd service on the server.
     
  3. season

    season Registered

    Joined:
    Jun 22, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1

    Thanks for your answer.
    but could I change some file in my Cpanel admin ?
     
  4. chinmay

    chinmay Well-Known Member

    Joined:
    Jul 22, 2008
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    localhost
    You are Welcome.

    Nope. You cannot change the Document Root from the cPanel.
     
  5. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    ...unless it was a subdomain or an addon domain.
     
Loading...

Share This Page