0
votes

I have JAVA REST API Web Server on Tomcat Server which is running on port 8080 in the AWS EC2 instance.

And There is a Classic Load Balancer to manage all traffic for this instance. So before, ELB was on the HTTP and after sometimes, it was routed from HTTPS(443: ELB Port) to HTTP(8080: Instance Port) on the Listeners of the ELB.

And I added inbound rule in the security groups of ELB for HTTPS(443).

Elastic Load Balancer Image

Security Group of Elastic Load Balancer

When I call HTTP request, response is received but when I call HTTPS, it says Could not get any response.

And I added some Web UI to check, that shows for both the HTTP and HTTPS Request but https shows like line-through(HTML type) the https and Not Secure in the URL Address Bar.

3

3 Answers

0
votes

check if 443 port is open for the ELB. Go to Security Groups on EC2 console and ensure the ELB security group has port 443 open.

open HTTPS 443 port on EC2 security group

0
votes

Check if you have a rule set in Ec2 security group which allows inbound traffic on port 443 and port 80 from source ELB security group. If you do not have such rule try adding one and then check again.

0
votes

I have opened the ports - 80and443 on both the ELB and EC2 sides. Now it is working.