Skip to main content

Comments

10 comments

  • cPRex Jurassic Moderator
    Hey there! I believe you'd be better off changing your local hosts file, as the IP/~username may not always follow everything setup on the machine. Can you try this instead to see if that gives you better results?
    0
  • Jilco
    Because it is a cloudserver with WHM/Cpanel it is not possible what is in your answer...
    0
  • cPRex Jurassic Moderator
    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
  • Jilco
    Okay, but what will it solve? The document root wil stayvthe same..
    0
  • cPRex Jurassic Moderator
    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
  • Jilco
    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
  • cPRex Jurassic Moderator
    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
  • Jilco
    Unfortunatly not working, i get error DNS_PROBE_FINISHED_NXDOMAIN
    0
  • Jilco
    According to this article it is not possible
    0
  • cPRex Jurassic Moderator
    While we don't support changing it for newly-created accounts, you can use the details in the article here to manually change the docroot:
    0

Please sign in to leave a comment.