The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Domain redirecting to /cgi-sys/defaultwebpage.cgi

Discussion in 'General Discussion' started by Rvanlaak, May 26, 2016.

  1. Rvanlaak

    Rvanlaak Registered

    Joined:
    May 26, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Netherlands
    cPanel Access Level:
    Root Administrator
    We had the "Domain redirecting to /cgi-sys/defaultwebpage.cgi" problem in our PHP application. From a certain moment on we started receiving 404s on requests to api.example.com. The weird thing is that the content of that 404 was generated by our cPanel instead of the server from the external API.

    After Googling a lot, we found some sources saying that restarting DNS would work, which sounds a bit weird because it was PHP that was having problems. But the DNS restart did work though, and the 404s did disappear. So how is that even possible, PHP gets a 404 and the content of that 404 consists of the content of our defaultwebpage.cgi. If it would really be a problem with the external API, we'd expect the content to show our own page.

    So how was it possible restarting the DNS did solve this? And, what was the actual problem?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    It seems like the domain name resolved to the cPanel server, but not to the correct IP address on the cPanel server. Thus, once the DNS issue was resolved, the domain name resolved to the correct address.

    Thank you.
     
Loading...

Share This Page