Home  >  Q&A  >  body text

ssl - Want to know if Apache can use https by default?

I have nothing to do research recently https
I use Apache2 winserver2003. After installing the certificate, I found that the Apache configuration file must go to port 80, which means that my 80 virtual machine cannot be shut down. I opened a 443 port so that visitors can rwirte to the htaccess file based on port 80. https
I don’t think it’s a waste of emotion. I have to go twice in a row to access the main site
I would like to ask if there is any good method to directly go to https when opening the website

習慣沉默習慣沉默2713 days ago519

reply all(2)I'll reply

  • 習慣沉默

    習慣沉默2017-05-16 17:05:36

    Can’t.

    When typing www.oo.xx, the browser will definitely look for port 80 by default, which means that the real address accessed by the browser is:

    http://www.oo.xx:80

    When typing https://www.oo.xx, the browser’s default access address is:

    https://www.oo.xx:443


    Conclusion:

    You can redirect to any other interface and choose the http or https protocol arbitrarily, but you must first handle the browser's default request before doing what you want to do.

    而且,其他端口的 :80 和 :443 部分是不会隐藏的。

    reply
    0
  • 大家讲道理

    大家讲道理2017-05-16 17:05:36

    Method 1: When entering the URL, add https in front of it
    Method 2: 301 redirect, so as long as you go to one side and come back later, the browser and Google will automatically add it for you, so you don’t have to go around in circles.

    As for those who insist on accessing port 80, wouldn’t it be better to redirect them rather than deny access?

    reply
    0
  • Cancelreply