cPanel 'Sorry' page and 404 pages on recent WHM/cPanel install

Operating System & Version
Almalinux 8
cPanel & WHM Version
106.0.11

Hefin

Member
Feb 23, 2021
7
2
3
London
cPanel Access Level
Website Owner
Recently installed a WHM/cPanel on a home server installation WHM and cPanel are all behaving as expected but the cPanel sites won't resolve.

https://hefin.co.uk/ -> resolves to https://hefin.co.uk/cgi-sys/defaultwebpage.cgi
http://wpfreelancer.co.uk -> resolves to https://wpfreelancer.co.uk/cgi-sys/defaultwebpage.cgi

The WHM/cPanel server is behind my PFsense box, I've opened the web ports and ports required by

I ran cat /var/cpanel/cpnat

[[email protected] ~]# cat /var/cpanel/cpnat
192.168.1.251 80.229.15.223

The IP address internal is correct 192.168.1.251
The web-facing IP address is correct 80.229.15.223

Any ideas what the issue could be. Thanks
 

cPanelWilliam

Administrator
Staff member
Mar 13, 2018
161
23
93
Houston
cPanel Access Level
Root Administrator
Hi! Since your server is using NAT it would be good to ensure that Apache is using the correct internal IP address for your domains, which you can confirm by checking the Apache configuration file.

It looks as though you may have already resolved the website issue. However, we have an excellent article to help resolve the defaultwebpage.cgi issue should you reencounter it:

Why does my website show the default cPanel page