ELB is Amazon's managed Load Balancer service, used in conjunction with its EC2 virtual machine cloud hosting service.
Questions tagged [amazon-elb]
557 questions
35
votes
5 answers
Nginx set_real_ip_from AWS ELB load balancer address
I have a set of Nginx servers behind an Amazon ELB load balancer. I am using set_real_ip (from the HttpRealIpModule) so that I can access the originating client IP address on these servers (for passing through to php-fpm and for use in the…
vitch
- 660
29
votes
3 answers
Nginx Solution for AWS Amazon ELB Health Checks - return 200 without IF
I have the following code that is working on Nginx to keep the AWS ELB healthcheck happy.
map $http_user_agent $ignore {
default 0;
"ELB-HealthChecker/1.0" 1;
}
server {
location / {
if ($ignore) {
access_log off;
return 200;
…
Adam
- 525
- 1
- 6
- 10
27
votes
4 answers
Redirect all http requests behind Amazon ELB to https without using if
Currently I have an ELB serving both http://www.example.org and https://www.example.org.
I would like to set it up so any request pointing to http://www.example.org is redirect to https://www.example.org.
The ELB sends the https requests as http…
Jordan Reiter
- 1,390
27
votes
11 answers
how to forward godaddy domain to ec2 load balancer
I have a domain with godaddy: example.com
I have an ec2 load balancer pointing to an ec2 instance.
I would like to example.com to point to my load balanced instance.
I first added a www cname record for my elb DNS. Then I forwarded example.com to…
petey
- 582
24
votes
3 answers
Is AWS's Elastic Load Balancer a single point of failure?
I am looking at moving our application up to Amazon Web Services. The plan is to have all of the EC2 instances mirrored across two availability zones. Due to data transfer costs, we will be staying in a single AWS region (Oregon).
The multiple AZs…
Chris.B
- 431
19
votes
1 answer
2 ELBs (ALBs) to 1 target group, possible?
I have the following scheme:
Internet <-> elb1external <-> varnish <-> elb2internal <-> targetgroupofwebnodes
But some /static/* & /media/* are routed to targetgroupofwebnodes from elb1external directly, around varnish & second ELB, so I need both…
GTXBxaKgCANmT9D9
- 435
19
votes
1 answer
Does Heartbleed affect AWS Elastic Load Balancer?
The Heartbleed OpenSSL vulnerability (http://heartbleed.com/) affects OpenSSL 1.0.1 through 1.0.1f (inclusive)
I use Amazon Elastic Load Balancer to terminate my SSL connections. Is ELB vulnerable?
secretmike
- 323
16
votes
3 answers
How can I use https with AWS Cloudfront without paying $600 to upload my cert?
I can host a dynamic website through Amazon CloudFront because they have CNAME Wildcard Support. However, some pages of my Site use HTTPS. Amazon have some documentation about how to associate your SSL certificate with a CloudFront distribution but…
Tom
- 4,522
16
votes
7 answers
How can I make my web server reachable via IPv6 on the AWS platform?
My business's web site uses the AWS platform. I want the site's visitors to be able to reach my content using the IPv6 protocol. How can I add an IPv6 address?
Jeff Loughridge
- 1,094
- 2
- 8
- 18
15
votes
3 answers
Elastic Load Balancer for multiple webapps
I have N webapps. Each webapp is served by a different hostname in my domain and deployed to 2 instances running in AWS. In other words, I have 2N instances, divided into pairs which run N distinct webapps.
I'd like to set up a single AWS Elastic…
thesamet
- 327
- 1
- 2
- 7
15
votes
2 answers
What algorithm does Amazon ELB use to balance load?
I found this in the official ELB documentation
By default, a load balancer routes each request independently to the
application instance with the smallest load.
but an article on Newvem says that ELB supports only Round Robin…
kn330
- 837
14
votes
4 answers
How to redirect HTTP to HTTPS on AWS Application Load Balancer?
Our website needs HIPAA compliance so everything needs to be encrypted. I don't want client to get an error message when they put in "http://mysite.com", so I need to support both HTTP and HTTPS, and redirect HTTP to HTTPS. Am I right?
I did it…
AussieDude
- 568
14
votes
1 answer
How to log original value of $remote_addr when using Real-IP
My environment has user requests passing through a number of systems:
[Client] --> [ELB] ---> [nginx] --> [web]
(ELB = AWS Elastic Load Balancer)
Thanks to this answer, I have nginx determining and passing the correct client IP address to the…
michaelg
- 270
- 1
- 3
- 9
14
votes
3 answers
AWS - Assign an Elastic IP to a ELB
Is it possible to assign an Elastic IP to a Load Balancer?
Mark
- 462
13
votes
1 answer
AWS Fargate + Application Load Balancer SSL Termination
I'm trying to configure ECS Fargate behind an Application Loader Balancer (ELBv2), and I would like to terminate the TLS/SSL connections on the ALB, and send HTTP traffic (port 80) to the Fargate images, which listen on port 80.
This is the diagram…
Jeremy Blalock
- 233