amazon-elb

Enabling HSTS in AWS ELB application load balacer

*爱你&永不变心* 提交于 2019-12-05 06:37:08
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 to decide and enable HSTS header in the response. Presently, ALB does not appear to pass custom headers from IIS to the ALB, to the end-user. We wanted to see if there is a way to enable HSTS either at ALB level where it can accept custom headers or if it can be set at IIS level and ALB can pass through the HSTS headers to the browser? HSTS is a policy that is controlled by the backend and not by

Spring Boot and ebextensions

淺唱寂寞╮ 提交于 2019-12-05 05:19:09
I'm trying to add an .ebextensions folder to the root level of my jar to be deployed to AWS elastic beanstalk. My folder structure is: main: --src --resources --.ebextensions When I build the jar my .ebextensions gets placed on the classpath of my target and therefore is not picked up by Elastic Beanstalk on deploy. Pom.xml <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <fork>true</fork> <addResources>false</addResources> </configuration> </plugin> How can I build so that ebextensions is picked up by ELB? This works for me

X-Forwarded-Proto for Rails behind nginx behind ELB

江枫思渺然 提交于 2019-12-05 02:07:14
I'm pretty stuck with this thing for couple of hours. No way I could make it working. I tried everything I can think of and/or found online. So, my application is pointed to ELB (web). ELB listens to 80 and 443 and sends traffic to 80 (SSL is terminated here) to member instance(s) which is nginx. Nginx proxies app requests to another ELB (app) in front of multiple instances. These instances run puma. Everything works fine except when I try visiting an URL (where I used force_ssl for that controller) with https scheme, I get a redirection loop. Here is my nginx configs look like location @{{app

How to connect AWS ELB to RDS running MS SQL?

本小妞迷上赌 提交于 2019-12-04 19:35:17
AWS clearly states here and in the Q&A that one can connect to an MS SQL server using a PHP instance on the Elastic Beanstalk. However, there seems to be no way to install the MSSQL drivers. For example, installing yum php-mssql from the ELB command line, generates errors stating that the versions of the dependencies needed are too high. Here's a classic error report: --> Running transaction check ---> Package php-common.x86_64 0:5.3.29-1.8.amzn1 will be installed --> Processing Conflict: php54-common-5.4.45-1.75.amzn1.x86_64 conflicts php-common < 5.4.45-1.75.amzn1 --> Processing Conflict:

How to configure AWS ELB to block certain IP addresses? (known spammers) [closed]

你离开我真会死。 提交于 2019-12-04 18:52:55
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I am looking for a way to drop connections from known spam ip addresses on an Amazon's Elastic Load Balancer (ELB)? I am currently doing this at the web server level (multiple instances, running behind the ELB), but wondering if there is a way to do it at the ELB. This way, I can avoid configuring each web

AWS Application Load Balancer transforms all headers to lower case

被刻印的时光 ゝ 提交于 2019-12-04 17:47:52
问题 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 that HTTP headers are case-insensitive by definition, however (unfortunately) some clients are ignoring this and checking the headers in a case-sensitive way (e.g. they expect Location to start with upper case). Recently I've changed to AWS Application Load Balancer and now I see that it

AWS Application Load Balancer (ALB) path based routing not functioning as expected

安稳与你 提交于 2019-12-04 16:52:37
问题 I am working on a POC to prove out AWS path based routing through an Application Load Balancer to a set of very basic "hello world" node.js applications using express. Without the path based routing in place and having multiple listeners, 1 listener for each application, each respective listener and application is working as expected. Therefore, the targets within the Target Groups have both passed health checks and are shown as healthy. However, when I switch to the path based routing

ASP.NET MVC site not working correctly behind AWS ELB

拟墨画扇 提交于 2019-12-04 12:37:48
I'm trying to deploy an ASP.NET MVC web application, which uses individual user accounts, to an AWS server, which is using an elastic load balancer (ELB). I've deployed the site to IIS on the AWS app server, connected it to my AWS SQL server, and it works as expected on the server (and indeed when I run it in Visual Studio or deploy to an internal server). The problem comes when accessing it remotely, which of course goes via the ELB. If I try and access https://www.example.com/ it doesn't work - it will redirect me to http://www.example.com/Account/Login?ReturnUrl=%2F , which hangs and I then

Websockets with AWS and Elastic Beanstalk

元气小坏坏 提交于 2019-12-04 08:10:59
问题 I'm trying to get my websockets working with Amazon Web Service and Elastic Beanstalk (ELB). I set up a proxy protocol according to: http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/enable-proxy-protocol.html I've opened up all inbound traffic to my load balancer and other security groups on all ports, for all IPs. I also kept the load balancer listerner as HTTP on port 80. My websocket connection gives the following error when trying to connect on port 80: failed: Error

Assigning Static IP Address to AWS Load Balancer

那年仲夏 提交于 2019-12-04 07:56:14
问题 How can I assign a static IP address to a ELB. Seems like I cannot. Some articles online asks to create a Route 53 record but this requires changing CNAME of domain which also redirect email traffic. I just want to change A record not CNAME. Some articles also mention that I can use a EC2 instance as a reverse proxy. But will a single proxy be able to handle a lot of traffic? Any solution for this? 回答1: AWS' Elastic Load Balancer is actually elastic on two levels as described here: http:/