Questions tagged [amazon-elb]
ELB is Amazon's managed Load Balancer service, used in conjunction with its EC2 virtual machine cloud hosting service.
557
questions
0
votes
1
answer
412
views
Using Apache httpd to simulate an AWS NLB
I'm using AWS Network Load Balancer and I've enabled the "Proxy Protocol V2" in its Target Group. Connections are forwarded to some docker containers running nginx with this configuration:
server {
...
0
votes
1
answer
201
views
Why is NGINX timing out?
I have an application with about 200k users and am running a NGINX + Gunicorn(Python) server behind an AWS EC2 loadbalancer.
I don't understand how my requests is always 4k/minute but only sometimes ...
0
votes
1
answer
332
views
Permanent redirect all http requests to include www subdomain [duplicate]
I have noticed both google.com and amazon.com, redirect requests to www.google.com and www.amazon.com
I am thinking of doing the same for my website which is hosted on AWS. What is the best approach ...
1
vote
1
answer
1k
views
AWS ELB Route 53 to my bluehost domain?
Currently I'm trying to put SSL on my EC2 Instance using Load balancer & Route 53 for my BlueHost Domain
As of now I have working Load balancer
https://adthrone-loadbalancer-1188159040.us-west-2....
0
votes
1
answer
2k
views
Remote Desktop Services Gateway behind AWS ALB connectivity issues
I have set up a Remote Desktop Services Gateway behind an AWS ALB.
The AWS ALB does the SSL offloading and talks to the RDS Gateway Server via HTTP (port 80).
The configuration works and I can RDP ...
0
votes
1
answer
359
views
Glassfish 5 cluster creates JSESSIONID on each request
I am trying to configure a Glassfish cluster following the official HA guide.
The app is a standard JSF app (with Primefaces). At first I thought that the problem was related to JSF itself, but then ...
2
votes
1
answer
186
views
Separate public subnets for VPN access in my AWS VPC
I'm setting up an AWS VPC, and have carved it up into public, cache, persistence and compute subnets.
I plan on separating resources in the following way:
Public: ELB and VPN network association
...
2
votes
1
answer
4k
views
Cloudfront infront of ELB and kubernetes is showing Default backend (nginx-ingress)
Having kubernetes cluster with nginx ingress, pointed to AWS ELB load balancer and Route 53 domain pointed to this ELB is working just fine. Now I am trying to add cloudfront, it's pointing to load ...
-1
votes
2
answers
6k
views
Why AWS classic ELB with HTTP protocol doesn't work with websockets? [closed]
I know that there is an ALB and NLB option that works with websockets. I can't understand why classic ELB with HTTP protocol doesn't work with websocket connections, although at the instance there is ...
0
votes
1
answer
2k
views
Nginx + AWS ELB Health Status Check
I am currently trying to setup a health check on my Nginx server using AWS ELB but can not correctly configure it. I have done this in the past but this time I keep getting the following repeatedly:
...
1
vote
2
answers
265
views
AWS Route 53: No targets available with load balancer
I have set up a load balancer in AWS. I need it to run on app.mydomain.com. When I go to Route 53, enter an A record, and click Alias/Yes, the dropdown says "No Targets Available" under "ELB ...
3
votes
2
answers
537
views
iptables rule not working with AWS NLB and Elastic IP, works using EC2 Instance public IP
I'm at a bit of a loss.
First some context: I've got an AWS EC2 Instance behind an NLB. The NLB is using an Elastic IP. The EC2 Instance is running a DNS server and listening on UDP and TCP 53. The ...
3
votes
2
answers
7k
views
Is reverse proxy still required between AWS ALB and application server?
Context
Web application with application server, i.e. Ruby on Rails with puma. Running within a container on AWS ECS with Fargate. Traffic is routed by AWS Application Load Balancer directly to ...
1
vote
1
answer
802
views
Amazon ACM `CertificateNotFound` with imported certificate. `describe-certificate` works fine
I've imported my certificate into Amazon ACM:
aws --region us-west-2 acm import-certificate \
--certificate file://my_cert.crt \
--certificate-chain file://vendor_ca.crt \
--private-key file://...
1
vote
1
answer
4k
views
ELB redirect traffic from one port to another
Can AWS ELB redirect traffic from one port to another? Take this example - I have an application running on 8445 but I only want to expose port 443. I have tried this with target groups and listeners ...
0
votes
2
answers
394
views
How to resolve multiple EC2 instances for SSH in AWS?
I have multiple EC2 instances running in the same VPC (and thus same region). Is there a way that I can resolve those EC2 instances uniquely for SSH access? Let's assume that I am not using elastic ...
1
vote
1
answer
4k
views
Using a AWS Network Load Balancer for MySQL Cluster
I have asked this question on stackoverflow but I though it might be more suitable for this community.
I have a web server which connects to a MySQL cluster (it's Galera cluster)... the cluster works ...
0
votes
0
answers
572
views
Force HTTPS redirection with AWS Classic Load Balancer
I have a website in AWS hosted in an EC2 instance. I successfully configured SSL certificate via Classic Load Balancer and I can ONLY access https version of my website.
I am getting request timed ...
1
vote
0
answers
35
views
HAProxy - How to suppress HTTP/1.1 503 from being sent to the client when in maintenance mode
I'm having problems trying to suppress HTTP/1.1 503 from being sent upstream from HAProxy. In my environment clients first hit an ELB (classic) instance before traffic is sent on to HAProxy. When we ...
6
votes
3
answers
32k
views
Troubleshooting HTTPS on AWS ALB: Target Group Health Check Failing
I'm having trouble setting up HTTPS for my AWS EC2 instance. In short, I'm running a program on an EC2 instance, and it's critical that I be able to transfer the data securely from clients to AWS.
...
2
votes
0
answers
39
views
Rewrite rule with deleting a pattern or backward reference in the path with AWS ELB
Using AWS ELB, I want the folowing rewrite rule :
https://example.com/dl/toto.jpg should transform to https://dl.example.com/toto.jpg
I tried two ways to do this :
matching path /dl/* and return a ...
2
votes
1
answer
3k
views
How to get detailed logs of non-application 500 errors on an AWS ELB?
I have an auto-scaling group of EC2 instances running a Wordpress site behind an elastic load balancer. I can see that there are periodic 500 errors being reported by the elastic beanstalk app in ...
2
votes
1
answer
231
views
Failed to connect instance with ALB
I'm trying to build a system like this one:
I can't connect to the Instance in private public through ALB. I checked my cloudformation code several times and still couldn't find problem. Please help ...
2
votes
1
answer
1k
views
Can a EC2 in the private subnet sends traffic to the internet through ELB without using NAT gateway/instance?
I would like to build a test platform just like the picture. In order to make it simple, I want to let the private EC2 outbound the responses to the ELB, and through ELB the responses get to the users....
0
votes
1
answer
3k
views
how does elb distribute the traffc to private subnet though public subnet
I just start to learning AWS for a few days. I'm confusing about the way ELB distribute the traffic which from the internet. For example, if I have four ec2, two in the public subnet and others in the ...
0
votes
1
answer
1k
views
Setting up SSL certificate for subdomain alias
We have an application hosted on AWS backed by Application load balancer.
The subdomain subdomain.example.com and domain example.com is managed by an external registrar and they have their NS records ...
2
votes
1
answer
1k
views
What's the difference between setting AWS Load Balancer to VPC internal and setting equivalent inbound rules?
I'm setting up an API endpoint that I only want to be accessible from other applications inside my VPC.
The app is on Elastic Beanstalk and it appears that I can either set my Load Balancer to ...
1
vote
0
answers
98
views
How to authenticate EC2 instance with AWS ALB?
AWS Application Load Balancers (ALB) support authentication: https://aws.amazon.com/blogs/aws/built-in-authentication-in-alb/.
The documentation talks about human users - users arriving at the ALB ...
3
votes
2
answers
513
views
Does modifying the listener of an ELB in AWS gracefully drain connections in ECS?
My team and I are trying to come up with the best way to implement blue/green for AWS ECS but we can't seem to definitively answer one question about application load balancers.
So far, the method ...
0
votes
1
answer
313
views
How to configure AWS classic load balancer to use AWS SSL for both 80 and 8080?
We are using Nginx-RTMP Streaming and trying to redirect both 80 and 8080 to https. We have tried with redirecting different SSL port in AWS Classic load balancer but its doesn't work.
Nginx RTMP ...
2
votes
1
answer
3k
views
what causes a large upstream_header_time in nginx?
Setup:
Angular / Django / Nginx in ECS.
Route 53 -> ELB -> Target group ECS
With Nginx proxying /api | /admin calls to Django.
We have a large lag or delay on some of our API requests with ...
12
votes
1
answer
12k
views
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 ...
0
votes
2
answers
565
views
Target Groups and Placement Groups
How do Target groups and Placement Groups work together, or influence each other?
Is it possible to have an overlap between these two types of groupings?
For example if I have an ELB pointing to a ...
1
vote
2
answers
1k
views
HTTPS works only with Load Balancer DNS - AWS
I have a problem with HTTPS configuration on AWS hope you can help.
What I already have:
EC2 - with Elastic IP, open ports screen shot with security group.
Load Balancer attached to EC2 (with same ...
2
votes
1
answer
3k
views
AWS - Throttling ELB HTTP Traffic
I'm running a pretty standard LAMP stack on AWS. ELB distributes traffic to a few EC2 Instances running the same application.
I have an issue where periodically I receive a huge spike in HTTP ...
5
votes
1
answer
2k
views
EC2 VPC Intermittent outbound connection timeouts
My production web service consists of:
Auto-scaling group
Network loadbalancer (ELB)
2x EC2 instances as web servers
This configuration was running fine until yesterday when one of the EC2 instances ...
1
vote
1
answer
134
views
AWS ELB to Target group Mapping
I am new to AWS And setting up ELB .I worked in F5 LTM and I have some queries about application hosting in ELB.
Do we really need a CNAME to route the traffic to ELB FQDN
If so ,how can I host ...
0
votes
2
answers
2k
views
Network Load Balancer to Fargate/ECS Cluster - how to map multiple ports/target groups to one service?
Here is my setup:
Route53 Alias Record -> Network Load Balancer -> Fargate/ECS Cluster
The containers in the cluster have their own TLS certificates and have ports 80 and 443 open. The http server ...
1
vote
0
answers
36
views
AWS ACM renewal issue with DNS method
I have ACM certificate which is verified with DNS method.
Now it's getting issue of renewal. Because domain is pointed with ELB record as CNAME.
How can I add both ELB CNAME and ACM CNAME record to ...
1
vote
1
answer
373
views
AWS system failing on HEAD request but hardly on GET requests on stress test
I'm running a stress test with Locust on:
c4.xlarge (attacker has c4.4xlarge)
1 instance
amazonlinux 2017.03
The load balancer is:
classic type
internet-facing
stickiness is disabled for both 80 &...
0
votes
1
answer
5k
views
Double slash in URL is automatically converted in single slash in $_SERVER['REQUEST_URI']
I am working on one site where I need to show 404 pages when someone adds double slash in URL.
I have written logic to check REQUEST_URI and if there is double slash then I am showing 404 pages...
...
1
vote
2
answers
8k
views
Can't set http-only and secure cookies in Apache
My website is on Apache which is hosted in AWS VPS.
I tried setting http-only flag and secure flag by editing security.conf file but upon checking the headers via https://hackertarget.com/http-header-...
2
votes
1
answer
194
views
SSL termination on AWS Classic ELB
For the life of me, I can't figure out what I am doing wrong. I followed the AWS documents to add SSL on a classic ELB (I tried the NLB which still failed for us).
Basically, we have a webserver ...
2
votes
1
answer
738
views
Using a CNAME record to point to an Amazon ELB
I have an elastic load balancer in an AWS VPC.
I can access the resources successfully behind the load balancer exposed on different ports - standard https 443 and a couple of higher ones say 8888.
...
2
votes
1
answer
11k
views
AWS Elastic Load Balancer and target group health check fail for no apparent reason
I have completed my AWS ELB architecture for our website and successfully created the Launch Configuration and Target Groups for which instances are created behind the Load Balancer.
My configuration ...
2
votes
1
answer
318
views
AWS ELB - downstream connections higher than workers count
This might be something I fundamentally don't understand about AWS application elastic load balancer set up.
It's very simple. The load balancer is a public front end, forwarding all traffic to a ...
2
votes
1
answer
4k
views
Why is my autoscaling group instance unhealthy?
I'm noticing a very strange issue with an AWS auto-scaling group.
Instances are being reported (incorrectly) as being unhealthy. The instances are then being terminated and replaced unnecessarily. ...
0
votes
1
answer
91
views
Setting a public endpoint for each server which is behind a load balancer
Given that there are a load balancer(e.g. AWS ELB) and multiple server instances associated to the load balancer, can I set up a public endpoint (e.g. NAT forwarding) for each server instance as well? ...
3
votes
1
answer
3k
views
HTTP/2 for ALB with EKS on AWS
I'm experimenting with AWS EKS and have created the following setup:
EKS cluster with a single service/pod/node
AWS ALB ingress controller
ALB
I try to configure the ALB to:
create access logs
...
0
votes
0
answers
124
views
Does AWS ELB support wildcard ports?
In Azure, the Standard LB can listen on all ports and can therefore be used to load balance firewalls. This is the feature ( https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-ha-ports-...