HTTPS working, but HTTP does not - WHM/cPanel

DavidIQ

Registered
May 17, 2022
2
0
1
Earth
cPanel Access Level
Root Administrator
I've been fighting with this for an hour or two and can't seem to figure it out. I'm managing a client's brand new server and their site is only coming up when pulling it up with HTTPS but not when it's just HTTP. Apache seems to be responding since it's actually serving up a 404. Initially the SSL certificate was a self-signed cert that came pre-assigned when WHM was installed. I then tried deleting it and ran `/scripts/rebuildhttpdconf` but that didn't help and that actually caused HTTPS to also serve up a 404 so I generated a new SSL cert and assigned it again. And yes I've restarted apache every time I've made a change.

They don't currently have a signed cert so can't really just forward SSL to non-SSL, at least not yet.

So I'm out of ideas. Anyone know what else I should be looking at?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
10,360
1,631
363
cPanel Access Level
Root Administrator
Hey there! Is there anything specific in the 404? If you check the Apache configuration directly, can you confirm there is a non-secured vhost (running on port 80) in place for that domain? Normally I'd expect the opposite to happen where SSL doesn't work.

When you load the page do you see anything else helpful in the main Apache log at /etc/apache2/logs/error_log?
 

DavidIQ

Registered
May 17, 2022
2
0
1
Earth
cPanel Access Level
Root Administrator
Thanks for responding. Nothing really specific on the 404 page:
1652917425153.png

Not seeing anything in the logs, BUT if I go to the site root I end up here:
1652918056024.png

The URL becomes http://serverip/cgi-sys/defaultwebpage.cgi

The apache error log has this for the above, but It doesn't look like much of anything:
[Thu May 19 00:50:57.167164 2022] [mpm_prefork:notice] [pid 1109784] AH00171: Graceful restart requested, doing restart
[Thu May 19 00:50:57.289965 2022] [:notice] [pid 1109784] mod_ruid2/0.9.8 enabled
[Thu May 19 00:50:57.291602 2022] [mpm_prefork:notice] [pid 1109784] AH00163: Apache/2.4.53 (cPanel) OpenSSL/1.1.1k mod_bwlimited/1.4 configured -- resuming normal operations
[Thu May 19 00:50:57.291644 2022] [core:notice] [pid 1109784] AH00094: Command line: '/usr/sbin/httpd'
[Thu May 19 00:51:07.991847 2022] [mpm_prefork:notice] [pid 1109784] AH00171: Graceful restart requested, doing restart
[Thu May 19 00:51:08.122896 2022] [:notice] [pid 1109784] mod_ruid2/0.9.8 enabled
[Thu May 19 00:51:08.124727 2022] [mpm_prefork:notice] [pid 1109784] AH00163: Apache/2.4.53 (cPanel) OpenSSL/1.1.1k mod_bwlimited/1.4 configured -- resuming normal operations
[Thu May 19 00:51:08.124766 2022] [core:notice] [pid 1109784] AH00094: Command line: '/usr/sbin/httpd'
Anything else I can look at?
 
Last edited: