This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

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
Thanks given by:


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 8 ,106 05-18-2022, 09:26 AM
Last Post: Nigel
Server Vs. Workstation zHostingSolutions 4 9 ,322 09-14-2021, 06:30 AM
Last Post: sparkrack
https without certificate redirects to panel iraqiboy90 10 22 ,725 02-28-2021, 11:20 AM
Last Post: iraqiboy90

Forum Jump:


Users browsing this thread: 1 Guest(s)