To test this out (I had some issues switching from port 80 to port 443 on my prod server), I have set up a second VPS using this method.
The service port is 80 and I have attempted to use the VHost over ride to redirect from 80 to 443. I add in the 443 into the port override box, tick forward port 80 to overridden port and put in this:
I run the sentora daemon and restart httpd service. I can see in the vhosts config that the re-direct vhosts entry has been correctly added.
Prior to doing the above, port 80 works fine. After doing the above, port 80 gives me a connection error. If I add https:// to the beginning of the domain it loads properly.
Any ideas what else I'm missing? Once I can get this working, I'll migrate my domains over and try to switch the original server over to a proper setup with port 80 as the service port.
Thanks,
Gordon
The service port is 80 and I have attempted to use the VHost over ride to redirect from 80 to 443. I add in the 443 into the port override box, tick forward port 80 to overridden port and put in this:
Code:
SSLEngine on
SSLProtocol ALL -SSLv2 -SSLv3
SSLHonorCipherOrder On
SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
SSLCertificateFile /etc/letsencrypt/live/my.domain/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/my.domain/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/my.domain/chain.pem
# Keeping bellow for future upgrades.
# Requires Apache >= 2.4
SSLCompression off
Prior to doing the above, port 80 works fine. After doing the above, port 80 gives me a connection error. If I add https:// to the beginning of the domain it loads properly.
Any ideas what else I'm missing? Once I can get this working, I'll migrate my domains over and try to switch the original server over to a proper setup with port 80 as the service port.
Thanks,
Gordon