Change document root of Cpanel account that is not the main domain
Hello world, I want to change the document root of my testing enviroment. I followed this steps ( points to /home/jilco01/public_html/ and needs to point to /home/jilco01/public_html/pub/
-
Because it is a cloudserver with WHM/Cpanel it is not possible what is in your answer... 0 -
The changes outlined in that document are made on the local computer, and aren't related to the server. It's just to tell your local machine that the DNS for the domain is somewhere custom from what the public DNS shows. 0 -
Okay, but what will it solve? The document root wil stayvthe same.. 0 -
Yes, but instead of visiting with IP/~username you would just be able to visit domain.com, and then Apache would handle the document root properly. If you check the Apache configuration manually at /etc/apache2/conf/http.conf, do you see the document root has been updated there? 0 -
I will trie tommorrow, thanks in advance. Please be aware that the normal IP (without jilco01) point to the main domain that not needs to change 0 -
That's correct - that work doesn't change the IP address of the domain, but just tricks your local machine into thinking the domain uses a different IP for short-term testing. 0 -
Unfortunatly not working, i get error DNS_PROBE_FINISHED_NXDOMAIN 0
Please sign in to leave a comment.
Comments
10 comments