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 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:
    51
    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:
    66
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. season

    season Registered

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

    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:
    66
    Location:
    localhost
    You are Welcome.

    Nope. You cannot change the Document Root from the cPanel.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    ...unless it was a subdomain or an addon domain.
     
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