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?
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?