You can modify the "documentroot" value in the following file:
Code:
/var/cpanel/userdata/username/domain.com
Simply replace "username" with the user name of the account, and "domain.com" with the domain name you would like to edit the document root for. After you have modified the "documentroot" value in this file, you will need to rebuild the Apache configuration file via:
Thanks a lot,
I see the /etc/httpd/conf/httpd.conf was change but still when I try to load mylandpage.co.il it's go to /public_html and only if I go to mylandpage.co.il/public the application load.
do I need to restart httpd?
And if I want to add <directory > instruction I'll do it in the same file?
Yes, you have to restart Apche after rebuilding httpd.conf, to refelct the changes in it. No, don't put any Apche related confs in cpanel/userdata files. You can use the include files specified in the httpd.conf, for the particular domain.
Thanks a lot,
I see the /etc/httpd/conf/httpd.conf was change but still when I try to load mylandpage.co.il it's go to /public_html and only if I go to mylandpage.co.il/public the application load.
do I need to restart httpd?
And if I want to add <directory > instruction I'll do it in the same file?