2

I'm going through some tutorials right now and I don't understand this one thing. Why do I have to open port 80 when I use HTTPS? Isn't port 443 enough?

Or is port 80 open to handle the redirect from http to https?

Nepo Znat
  • 249
  • 3
  • 8

2 Answers2

3

Best practice is to listen on http and redirect to https. But this is not mandatory.

Nils
  • 7,657
  • 3
  • 31
  • 71
  • 1
    And this will eventually change, as the browsers start to default to check the https before http when just a hostname is entered - ie, user types "google.com" in location bar, currently all check http //google.com first, eventually https //google.com will be checked first. Until this, this answer is correct - best practice is to listen and redirect. – ivanivan Nov 25 '17 at 18:34
0

It isn't mandatory. You can listen only for secure HTTPS connection on port 443.

Try to comment out the port 80 and it should work.

Jaroslav Kucera
  • 1,435
  • 10
  • 16