Load balancer HTTPS to EC2 instance through HTTP

0

I'm a bit confused as to why things are not really working out here.

I have set up an AWS load balancer of type 'classic'. As a test I've set it up so that it listens to two EC2 instances running on port :8090, and I am currently getting the '2 of 2 instances in service' when looking at the load balancer information (HTTP health check on port :8090). For the load balancer listeners I have it set up in the following way:

  1. Load balancer protocol HTTP on port 8090 -> Instance protocol HTTP on port 8090
  2. Load balancer protocol HTTPS on port 443 -> Instance protocol HTTP on port 8090 with a certificate currently stored in the IAM

The security setting the for load balancer is accepting connections on 8090 and 443 while the security setting for the EC2 instances is accepting all connections from the load balancer.

Browsing to the load balancer on port :8090 properly returns the the application GUI that is running on the EC2 instance, port 8090. Browsing to the load balancer on port :443 however, simply gives me an ERR_EMPTY_RESPONSE. What am I missing here?

All help is much appreciated!

// Jimmy

Edited by: JimmyLarsson on Nov 20, 2019 9:52 AM

Just me being silly trying to connect to it incorrectly, it works as expected...

Edited by: JimmyLarsson on Dec 2, 2019 8:49 AM

已提問 4 年前檢視次數 885 次
1 個回答
0

Realized there was no problem, just me trying to connect to it by typing [DNS]:443 instead of https://[DNS] in the browser...

已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南