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.

Configure /home/user/public_html as DocumentRoot

Discussion in 'General Discussion' started by rcechang, Jan 31, 2014.

  1. rcechang

    rcechang Registered

    Joined:
    Jan 31, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello every body,

    Sorry about this newbie question.
    I have a server, and when I go to mi ip, then I can see the content of my /home/user/public_html. It's fine for me. I reconfigure Apache using EasyApache and I lost this behavior, now when I go to mi ip, I see the content of /usr/local/apache/htdocs. I try to change this by editing de apache configuration file, but this is a bad practice if I use whm. How is the best way to change Apache, in order to make my /home/user/public_html the DocumentRoot.

    Thank you for your help
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    It's likely the document root is already correctly configured. Could you verify the IP address assigned to the account and used in it's DNS Zone matches the IP address the domain name resolves to from your computer?

    Thank you.
     
  3. rcechang

    rcechang Registered

    Joined:
    Jan 31, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    You are rigth, every thing is ok. I was confuse because everything was working ... :-S ... is a complicated history ... thank you very much.
     
Loading...

Share This Page