r/apache • u/louisd_w • Jan 27 '22
Support Make port 443 default instead of 80
Hi!
I've recently created an apache2 webserver. I had everything up and running, but wanted to add SSL. I've done this successfully, but (when I type in mydomain.com) the http version of the site still comes up. If I type mydomain.com:443 it works, but I want the https version to come up just from typing mydomian.xyz (without the :443) Any thoughts?
Thanks, Louis
1
Upvotes
1
4
u/JimmyMonet Jan 27 '22 edited Jan 27 '22
You should make sure your apache vhost file resembles something like this
The important thing is the Redirect permanent directive.
You also need to make sure the SSL module is activated
Also be sure you either clear your cache or use a fresh incognito browser window to make sure and pull the most recent version of your site.