first of all I am hobbyist in this case so forgive my ignorance and probably my question is very studpid.
So I installed nginx on my AWS EC2, my port configuration in the security group only allows port 80. I configured nginx to listen port 80 only. but when I type my domain in the browser it shows HTTPS. Which the port 443 is blocked and I do not even listen as shown in netstat query.
Am I missing something?
I noticed that actually because I wanted to redirect all my HTTP to HTTPS and it was causing redirect loop. I put command to redirect in the server configuration of listening 80 only. But since somehow HTTPS was using 80, it was causing this loop.
vee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.