ALB listener 443 to rule with 8443 Port issue

1.3k views Asked by At

I have updated my question again. Below things i have done with AWS ALB.

  1. Created Target group which is IP based to registered one instance with Port 80. I have created ALB listener with 443 IF Host header is zzzzz.example.com Then Forward to created Targetgroup. As well ALB Listener 80 THEN Redirect tohttps://#{host}:443/#{path}?#{query} Status code:HTTP_301. Its working fine. But its target group still unhealthy.

  2. Created Target group which is Instance based to registered another one instance with Port 8443. I have tried to add in same Listener 443 IF Host header is yyyyy.example.com Then Forward to created Targetgroup. But its not worked as expected. its too unhealthy.

Where i'm wrong? How can i solve this one? Is my case logically right?

1

There are 1 answers

3
Atul Sharma On

You can use AWS SDK to create a target group with the IP of new instance to forward 8443 port to 443 port and then attach it to the load balancer.

Here's how : How to create and attach a ELB properly in Boto3