Solve Issue: http works, but https time out
When use nginx to configure https with ssl 443 port, it might be timed out, but your http 80 port work correctly. At this time, if you nginx configured and started correctly (use nginx -t
to check log), another possible reason is that your server didn't open the 443 port. For most of the server, port 443 is will not be opened by default, only port 22 and 80 are opened. So you need to open it by yourself, for example, if you deploy it on AWS, you need to add the rule for security group to open 443 port.