Having both HTTP & HTTPS (Port 443 and Port 80) sites on a server
#4
RE: Having both HTTP & HTTPS (Port 443 and Port 80) sites on a server
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:

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
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
Reply


Messages In This Thread
RE: Having both HTTP & HTTPS (Port 443 and Port 80) sites on a server - by dsmarter - 08-15-2017, 03:30 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Server Crash rsthomas 3 10 ,457 05-18-2022, 09:26 AM
Last Post: Nigel
Server Vs. Workstation zHostingSolutions 4 11 ,703 09-14-2021, 06:30 AM
Last Post: sparkrack
https without certificate redirects to panel iraqiboy90 10 27 ,452 02-28-2021, 11:20 AM
Last Post: iraqiboy90

Forum Jump:


Users browsing this thread: 1 Guest(s)