Domain redirecting to /cgi-sys/defaultwebpage.cgi

Rvanlaak

Registered
May 26, 2016
3
0
1
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?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
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.
 

halinh95

Registered
Mar 27, 2017
2
0
1
Hà Nội
cPanel Access Level
Website Owner
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.
I have just bought domain and am having the same problem.
how fix ?
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
I have just bought domain and am having the same problem.
how fix ?
Hello,

Have you set the name servers on the domain name at the domain registrar to the ones provided to you by your web hosting provider?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello,

Yes, I am referring to the DNS. Could you attach that image directly to your response?

Thank you.
 

JulianoPM

Registered
Mar 30, 2017
1
0
1
VN
cPanel Access Level
Website Owner
Hi
I have two sharedhost services and they have the same IP address. So I removed an add-on domain from the first one and re-add it to the second one after changed the DNS on domain's supplier (something weird here because of the same nameserver, it may not changed anymore:()
When i access the domain name it redirects me to "domain.com/cgi-sys/defaultwebpage.cgi" on computer but it's ok on mobile and also on domain.com/wp-admin.

Anybody give some help? Thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463