Force SSL redirect - not working

BBM

Verified User
Joined
Jun 8, 2013
Messages
397
Location
Dutch Mountains
I still have some domains running under http.

Want to auto-redirect these to https. So;
-Got functional LE-certificates for them,
-Private to public alias,
-Force SSL redirect : On

https version works, but when the site is visited with http, it still loads the http-version.
The redirect simply doesn't happen.

SSL is enabled.
Looked at the domain.conf, everything looks to be in place.

Where to start looking what wrong?
 
Are you sure Apache did get a reload after enabling "Force SSL redirect"? If not, try a reload of Apache and see if that solves the problem. On my CentOS 7 servers with plain Apache, it works correct, and it automatically reload Apache after enabling "Force SSL redirect".
 
Do you maybe have a virtual host template in a /custom directory or a configuration file? I had the same issue and it seemd I had a httpd-vhost.conf in the /custom directory which prevented the automatic https redirect.
 
ah, yes... There's a virtual_host2.conf in the custom directory. Thanks!
Last modified in July 2018.
But can't recall why it's there.

Will have to compare it to a default conf to find out what's 'custom' on this one.
 
Back
Top