Configure /home/user/public_html as DocumentRoot

rcechang

Registered
Jan 31, 2014
2
0
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
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.
 

rcechang

Registered
Jan 31, 2014
2
0
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.