3,021 questions
124
votes
12
answers
108k
views
Redirecting EC2 Elastic Load Balancer from HTTP to HTTPS
I want to redirect all the HTTP request to https request on ELB. I have two EC2 instances. I am using nginx for the server. I have tried a rewriting the nginx conf files without any success. I would ...
80
votes
2
answers
87k
views
Amazon ELB for EC2 instances in private subnet in VPC
I'm using Amazon EC2, and I want to put an internet-facing ELB (load balancer) to 2 instances on a private subnet. I am using VPC with public and private subnets.
If I just add the private subnet to ...
65
votes
7
answers
30k
views
Does it make sense to have an Amazon Elastic Load Balancer with just one EC2 instance?
My question is simple. Does it make sense to have an Amazon Elastic Load Balancer (ELB) with just one EC2 instance?
If I understood right, ELB will switch traffic between EC2 instances. However, I ...
63
votes
7
answers
45k
views
How to fix WordPress HTTPS issues when behind an Amazon Load Balancer?
I've had this issue before. When running WordPress (or other PHP scripts) behind Amazon's EC2 Load Balancer, the scripts do not realize they are being ran on the https:// protocol and results in ...
57
votes
6
answers
51k
views
How do you put up a maintenance page for AWS when your instances are behind an ELB?
How do you put up a maintenance page in AWS when you want to deploy new versions of your application behind an ELB? We want to have the ELB route traffic to the maintenance instance while the new auto-...
51
votes
1
answer
5k
views
AWS classic load balancer listener isn't created, then disapears
I am trying to add an HTTPS listener to my EBS classic load balancer. I used the CLI upload-certificate tool to upload my cert (using the GUI never resulted in the cert showing up as an option on the ...
51
votes
3
answers
24k
views
Application Load Balancers vs API Gateway
AWS comes with a service called Application Load Balancer and it could be a trigger to a lambda function. The way to call such a lambda function is by sending an HTTP/HTTPS request to ALB.
Now my ...
45
votes
5
answers
31k
views
AWS: "Unable to parse certificate. Please ensure the certificate is in PEM format."
I am trying to update a wildcard certificate for EC2 instances on AWS. The service these servers belong to consists of a single server and a set of servers behind AWS ELB.
The certificate has been ...
38
votes
2
answers
41k
views
Is the most recent AWSALB cookie required? (AWS ELB Application Load Balancer)
Observations
When using an Amazon ELB Application Load Balancer and working with Sticky Sessions the load balancer inserts a cookie named AWSALB in the first request. To let the next request stick to ...
36
votes
8
answers
37k
views
Amazon API Gateway in front of ELB and ECS Cluster
I'm trying to put an Amazon API Gateway in front of an Application Load Balancer, which balances traffic to my ECS Cluster, where all my microservices are deployed. The motivation to use the API ...
32
votes
3
answers
39k
views
EC2. Load balancer. At least two subnets must be specified
I'm trying to create and configure Load Balancer.
The Availability Zones section has only one subnet and one zone for me.
I faced error:
At least two subnets must be specified.
Simple question - ...
31
votes
3
answers
10k
views
How to remove default certificate (need to change to different certificate)
I can't remove the current cert because it's the default.
So uh..how do I make the other one the default so I can remove the current default?
Note in the screenshot it says:
Select the certificates ...
31
votes
2
answers
50k
views
Enabling HSTS in AWS ELB application load balacer
We like to enable HSTS to our IIS deployed web application.
We have SSL terminating ELB Application load balancer. We have enabled the URL rewrite module in IIS and configured the x-Forward-Proto tag ...
31
votes
2
answers
14k
views
AWS Load Balancer 502
I have microservices(in different programming languages) running on an EC2 instance.
On production I notice a few 502 Bad Gateway Errors when these services try to interact with each other.
Also in ...
30
votes
11
answers
23k
views
AWS Elastic Load Balancing: Seeing extremely long initial connection time
For a couple of days, we often see an extremely long initial connection time (15s - 1.3 minutes) to our ELBs when making any request via ssl.
Oddly, I was only able to observe this in Google Chrome (...
29
votes
7
answers
33k
views
Terraform ELB S3 Permissions Issue
I am having an issue using Terraform (v0.9.2) adding services to an ELB (I'm using: https://github.com/segmentio/stack/blob/master/s3-logs/main.tf).
When I run terraform apply I get this error:
* ...
29
votes
3
answers
25k
views
Support for two-way TLS/HTTPS with ELB
One way (or server side) TLS/HTTPS with Amazon Elastic Load Balancing is well documented
Support for two-way (or client side) TLS/HTTPS is not as clear from the documentation.
Assuming ELB is ...
28
votes
7
answers
8k
views
Symfony2 behind ELB is redirecting to http instead of https
Issue:
User logs in with https://example.com/login
Authentication is approved
As configured in security.yml Symfony2 redirects user to profile page after login.
But it redirects them to the wrong url ...
27
votes
4
answers
22k
views
Terraform how to get IP address of aws_lb
Question
If there a way to get the assigned IP address of an aws_lb resource at the time aws_lb is created by Terraform?
As in AWS documentation - NLB - To find the private IP addresses to whitelist,...
27
votes
2
answers
23k
views
Understanding AWS ELB Latency
I'm keen to understand exactly what the ELB Latency Statistic provided by CloudWatch means.
According to the docs:
ELB Latency: "Measures the time elapsed in seconds after the request leaves the ...
25
votes
4
answers
23k
views
How do you get Amazon's ELB with HTTPS/SSL to work with Web Sockets?
This doesn't seem to be working right now. I'm using Faye with NodeJS behind an Amazon ELB. When I switch on HTTPS the connections can no longer be brokered. I found a question here unanswered: https:/...
25
votes
2
answers
18k
views
AWS Application Load Balancer transforms all headers to lower case
I've a REST API application running in two EC2 instance and was using AWS Classic Load Balancer for a long time. The clients of REST API rely on the response headers (e.g. such as Location).
I know ...
23
votes
7
answers
13k
views
Django ALLOWED_HOSTS with ELB HealthCheck
I have a django application deployed on Elastic Beanstalk. The HealthCheck for my app keeps failing because the IP of the ELB HealthCheck is not included in my ALLOWED_HOSTS settings variable.
How ...
23
votes
1
answer
12k
views
nginx $scheme variable behind load balancer
Is it possible to force nginx $scheme value to "https" if nxinx is running behind load balancer?
In my scenario Load balancer takes care of https communication with client and forwards requests to ...
22
votes
3
answers
6k
views
HTTP2 over AWS ELB under TCP Mode
Does anyone have the experience using HTTP2 server behind AWS ELB running in TCP Mode?
As I know, AWS ELB does not support HTTP2 now, however, by using TCP mode, it should pass the request to the ...