Force SSL Apache

BK_123

Golden Master
Messages
7,578
Location
Australia
Hey guys. So I am mucking around and have set up an Apache Web Server on CentOS 7 in VMWare Workstation in a test environment. So I have created an SSL certificate using the mod_ssl package by following this how to https://www.digitalocean.com/commun...ate-an-ssl-certificate-on-apache-for-centos-7. Now it works fine and the browsers recognise it but what I'd like to achieve is to be able type the normal http address and have it redirect to the https version. I've tried following guides hat say to set up virtual hosts but when I restart Apache it throws an error.
 
Ok so I tried doing that and Chrome & Firefox gave redirect loop errors and I don't know so I removed everything from that httpd.conf file that the guide said to insert and I can enter by putting https:// in the address.
 
So I created a .htaccess file and that seems to work in IE & Firefox but Chrome still won't automatically go to the https version..
 
Back
Top Bottom