I have some loadbalancer which works fine. It's configured like this.
The app is just running on 80 and redirected by the webserver to 443 and has a route 53 above
Now I tried totally the same but when I set my loadbalancer on the same values + wildcardcert I get:
Updating load balancer named: xx failed Reason: Listeners can't talk to InstancePort 80 with secure and insecure protocols at the same time (Service: AmazonElasticLoadBalancing; Status Code: 409;
What am I missing? Why is it working for the other apps?
Your second listener should have HTTP protocol as instance protocol. Or you should use port 443 for instance protocol.
Related
I have tried everything to get this to connect with HTTPS. I have added the SSL certificate to my IAM console, added the security group needed to open port 443 and attached it to my load balancer, and have added the HTTPS listener to my load balancer.
Still, I am getting a timeout when going to the HTTPS URL. The HTTP port is open and connects without issue.
I honestly don't know what information might be needed here, as this is my first go at setting up an HTTPS connection on an EC2 instance. Below are some screenshots of how things are set up in the EC2 console:
Load balancer listeners:
Load balancer port configuration:
And finally the Security Groups:
I realize these may not be the right details, and I cringe at the screenshots, but I am a one-man-band tasked to set this up, and I have no one to turn to for help! Thank you in advance for reading this and any insight provided.
I was able to make this work.
In the load balancer listener, I had an HTTP and HTTPS listener configured as so:
Load Balancer Protocol: HTTP | Load Balancer Port: 80 | Instance Port: 80
Load Balancer Protocol: HTTPS | Load Balancer Port: 443 | Instance Port: 80 | SSL Cert
The HTTPS listener was timing out no matter what I did. I even edited the security group to allow connections to port 443.
What I ended up doing was changing the HTTPS listener to this:
Load Balancer Protocol: SSL | Instance Protocol: TCP | Load Balancer Port: 443 | Instance Port: 80
And now I can connect to the HTTPS url. I have no idea why this works, but it does and it's good enough for me.
I created a network load balancer with EC2 instance and then I added listener with custom port 5000. I was successfully access load balancer dns with port 5000. I also created cloudfront linked with this load balancer but it seemed that AWS only supports port 80 or 443. Could anyone open custom port? Thanks
From Values That You Specify When You Create or Update a Distribution - Amazon CloudFront:
HTTP Port: The HTTP port that the custom origin listens on. Valid values include ports 80, 443, and 1024 to 65535. The default value is port 80.
I recently had to update my SSL certificate for my AWS Elasticbeanstalk. After the SSL certificate was updated, it started returning HTTP 503 error if I use HTTPS. It used to work fine earlier with HTTPS.
Finally figured out that when I changed my SSL certificate, the HTTPS out port 443 was some how mapped to inbound 443 port instead of port 80. All communication between load balancer and EC2 happens on HTTP on port 80. The load balancer which takes requests from external internet takes the HTTPS on port 443. So ensure the internal port mapping is 80 with HTTP and external is 443 with HTTPS
I'm struggling with ssl configuration of my Elastic Beanstalk environment. I can reach my site by 80 port (http) but I can't reach it using 443 port. I followed this documentation: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/configuring-https-elb.html but was unable to configure it properly. I'm getting 408 HTTP Status trying to reach my site (https://apploit.com). I allowed inbound traffic to port 443 for the Security Group:
and configured my load balancer to listen on port 443 and redirect traffic to port 443 on the EC2 instance:
Any ideas what is wrong with my configuration?
Well, it works right now... don't know why, maybe it needed some time :)
As per documentation link shared by you only in question :
Single-instance environments don't have a load balancer and don't
support HTTPS termination at the load balancer.
Hope it helps you!
I am learning load balancer and I have 2 instances connected to my load balancer but I always get out of service error.
Node is running in port 3000
my port configuration: 80 (HTTP) forwarding to 80 (HTTP)
health check: HTTP:3000/
My health check
When you use "HTTP" ping protocol you have to upload a test file at the path "/" you cannot just use "/" in the path field.
Use the below setting and it will work.