How to avoid cgi-sys/defaultwebpage.cgi page for mailserver hostname?

lautrivtas

Member
Dec 10, 2021
5
0
1
Vienna, Austria, EU
cPanel Access Level
Root Administrator
There are no active services on port 80 and port 443 of a mailservers hostname, why cPanel is displaying cgi-sys/defaultwebpage.cgi page ? Is there a known workaround to get ride of cgi-sys/defaultwebpage.cgi for a hostname which does not offer any service on http or https ? IS there anything similar in DNS for http like we have for mx ( mx null) ?

Thank you for any thoughts towards solving something whih does not look very important.

KR, Lautrivta
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,163
2,410
363
cPanel Access Level
Root Administrator
Hey there! If Apache is not running, cPanel takes over for ports 80 and 443 to ensure that service domains (webmail.domain.com, etc.) work properly on the system.

If you don't want that page to appear and don't need to serve web content from that machine, you can always block the ports in the firewall.
 

lautrivtas

Member
Dec 10, 2021
5
0
1
Vienna, Austria, EU
cPanel Access Level
Root Administrator
Hey there! If Apache is not running, cPanel takes over for ports 80 and 443 to ensure that service domains (webmail.domain.com, etc.) work properly on the system.

If you don't want that page to appear and don't need to serve web content from that machine, you can always block the ports in the firewall.
Hi, but how to block hostname ports 80 & 443 if mailservers hostname IP is cPanels License IP ?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,163
2,410
363
cPanel Access Level
Root Administrator
That's a good point - blocking those could interfere with the license check on the machine.

In general, any server's hostname will show *something* when visited in a browser. Would you like to just have more control over what is showing in this instance? If so, could you confirm if this is a full cPanel server and you have manually disabled the other services, or if this is a mail linked node?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,163
2,410
363
cPanel Access Level
Root Administrator
There would not be any RFC related to this.

The best solution would be to enable Apache on the machine so a web service is listening on that port, and then you can setup a default vhost using the details here:


It's also important to note that someone would have to manually type in the hostname in order to get to that page, which isn't something that generally happens.
 

lautrivtas

Member
Dec 10, 2021
5
0
1
Vienna, Austria, EU
cPanel Access Level
Root Administrator
There would not be any RFC related to this.

The best solution would be to enable Apache on the machine so a web service is listening on that port, and then you can setup a default vhost using the details here:


It's also important to note that someone would have to manually type in the hostname in order to get to that page, which isn't something that generally happens.
ok, thank you. There are many check security / check everything sites on the web - they are displaying this defaultwebpage.cgi page.
 

Attachments