How to deal with the "ERR_CONNETCION_TIMED_OUT" error?

When you use a browser on a local device or an ECS instance to access a website deployed on an ECS instance, it may appear that accessing the website through the http://domain name is normal, but accessing the website through the https://domain name prompts "ERR_CONNETCION_TIMED_OUT" situation, this article introduces the solution in this scenario.

Problem Description


When using a browser on a local device or an ECS instance to access a website deployed on an ECS instance, you can use the browser to access the non-encrypted website address (http://domain name), but cannot access the HTTPS encrypted website address (https: //Website domain name) and prompt "ERR_CONNETCION_TIMED_OUT".

Note In the scenario where this problem occurs, the function of redirecting from HTTP to HTTPS is not set in the website configuration file.

The specific phenomenon is as follows:

1. Use a browser to access the website through the http://domain name of the website, as shown in the figure. normal access

2. Using a browser to access the website through the https:// website domain name fails, prompting ERR_CONNETCION_TIMED_OUT, as shown in the figure. access exception

Problem Causes


When using a browser to access the website through the http://domain name, port 80 of the server is accessed by default, while when accessing the website through https://domain name, the default is to access port 443 of the server. Therefore, when the http-to-https function is not set in the website configuration file and the HTTPS service on the server has been started normally, if the security group of the ECS instance lacks an access rule allowing port 443 in the inbound direction, this problem may occur.

Solution


You need to add port 443 in the inbound direction to the security group where the ECS instance resides on the ECS console, and then use the website domain name to access the website again.

1. Add a security group rule.

For details, see Adding Security Group Rules. Add the 443 rule for the outbound direction

2. Re-access the website through https://domain name.

After successfully accessing the website, the problem is solved. HTTPS successfully accessed

Related Articles

Explore More Special Offers

  1. Short Message Service(SMS) & Mail Service

    50,000 email package starts as low as USD 1.99, 120 short messages start at only USD 1.00

phone Contact Us