Skip to main content

Hostname ends up in defaultwebpage.cgi

Comments

8 comments

  • cPanelMichael
    Hello :) Did you configure the correct IP address for the domain name in the hosts file on your computer? It should match the IP address the domain name is assigned in Web Host Manager. Thank you.
    0
  • Martin Werner
    Yes, it's pointing towards the correct IP address. Thanks for replying so rapidly! :)
    0
  • cPanelMichael
    Is it possible you have not setup the entry in the hosts file for the "www" prefix to the domain name and the script is redirecting you to that subdomain automatically? Thank you.
    0
  • Martin Werner
    It is true that I have only setup the entry without a "www-prefix" but it is redirecting me here(the domain name is is replaced);
    0
  • cPanelMichael
    Try loading a single HTML page (e.g. test.html) instead of the script you have uploaded to see if that makes a difference. You can also try rebuilding the Apache configuration file:
    /scripts/rebuildhttpdconf
    Thank you.
    0
  • Martin Werner
    I tried to create a test.html file, it gave a 404 error. When I tried with
    0
  • Martin Werner
    Okey I found the problem! It appears that apache was bound to my external ip rather than my internal. I had: When I changed to my internal IP, it started working!
    0
  • cPanelMichael
    I am happy to see you were able to address the issue. Please make note of the 1:1 NAT feature documented at: 1:1 NAT - Documentation - cPanel Documentation Thank you.
    0

Please sign in to leave a comment.