elastic-load-balancer

MVC HTTPS redirection when behind a load balancer

我与影子孤独终老i 提交于 2019-12-12 03:35:15
问题 I'm using MVC5 in some IIS servers on Amazon EC2, behind a Amazon Elastic Load Balancer. IIS servers runs only HTTP protocol, and ELB converts to HTTPS. IIS server doesn't know if user is accessing thru HTTPS, so I have a rewrite rule checking "X-Forwarded-Proto" header to redirect user to HTTPS. Unfortunately, when a login is required, MVC/IIS redirects user to a logon page in HTTP . If I check my website in a tool like http://www.redirect-checker.org/ I get these type of results: http:/

How To Extract Load Balancer Name from Elastic Beanstalk Environment in CloudFormation

最后都变了- 提交于 2019-12-11 15:19:25
问题 I have created a Elastic Beanstalk and CloudWatch Alarm in CloudFormation with the following code snippet: "ElasticBeanstalkEnvironment": { "Type": "AWS::ElasticBeanstalk::Environment", "Properties": { "ApplicationName": "my-app", "EnvironmentName": "my-eb", "SolutionStackName": "64bit Amazon Linux 2018.03 v3.0.1 running Tomcat 8 Java 8", "OptionSettings": [ { "Namespace": "aws:elb:loadbalancer", "OptionName": "CrossZone", "Value": "true" }, { "Namespace": "aws:elb:listener:80", "OptionName":

How to handle wesocket connections on load balanced servers

丶灬走出姿态 提交于 2019-12-11 06:45:00
问题 Our .net core web app currently accepts websocket connections and pushes out data to clients on certain events (edit, delete, create of some of our entities). We would like to load balance this application now but foresee a problem in how we handle the socket connections. Basically, if I understand correctly, only the node that handles a specific event will push data out to its clients and none of the clients connected to the other nodes will get the update. What is a generally accepted way

Redirect Http Url to Https in Elastic beanstalk loadbalancer

若如初见. 提交于 2019-12-11 05:38:48
问题 I've my spring boot app running on tomcat EC2 instances behind the Loadbalancer, which has configured with Https and internelly using Http. I want to redirect url requests to HTTP to HTTPS. I found this document from AWS Support As it says I need to config the Apache backend with the following config RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Proto} =http RewriteRule . https://%{HTTP:Host}%{REQUEST_URI} [L,R=permanent] My Question is where to add these config? There is another document

AWS forward port 8000 from elb to port 8000 of EC2

泄露秘密 提交于 2019-12-10 23:09:19
问题 I have en ELB with multiple EC2 instances registered in target groups. I am using port a php application which is running properly. It has SSL. I want to use port 8000 for my node application. What I would like to do is I want to forward my-elb-address:8000 to any-ec2-ip:8000. So when i access the domain attached to ELB witjh port 8000 it would forward that to ec2 with port 8000. How can I accomplish this? Is their any other way of ELB listening and forwarding multiple ports? I have added

Create AWS Application Load Balancer Rule which trim off request's prefix without using additional reverse proxy like nginx, httpd

随声附和 提交于 2019-12-10 15:58:46
问题 Basically, I have a couple of services. I want to forward every requests with prefix "/secured" to server1 port 80 and all other requests to server 2 port 80. The problem is that on server1, I am running service which accept the request without "/secured" prefix. In other words, I want to forward every requests such as "http://example.com/secured/api/getUser" to server1 as "http://example.com/api/getUser" (remove /secured from request' path). With AWS ALB, currently the request is sent as

SilverStripe behind load balancer

可紊 提交于 2019-12-10 10:54:54
问题 I've got an instance of SilverStripe running on two servers behind an AWS load balancer. To share the session information I'm running Elasticache Redis server. I'm setting my php session store info as such: ini_set('session.save_handler', 'redis'); ini_set('session.save_path', 'tcp://127.0.0.1:6379'); After I've signed into the admin section of the CMS I can jump between servers and it remembers me, however when switching between sections in the CMS the main section doesn't render (an AJAX

AWS Network Load balancing - session stickiness not consistent

落花浮王杯 提交于 2019-12-08 09:12:04
问题 We were using Application Load balancers earlier and session stickiness worked like a charm. Recently, we switched to the network load balancing and it's not working consistently, to make it worse we don't find any mention of session stickiness around network load balancers. We have the target groups as the backend application servers. Is network load balancer even an option for our use case? 回答1: I think, session stickiness won't be possible on a TCP level load balancer. The ELB use cookies

aws: boto3 get all instances of a load balancers

感情迁移 提交于 2019-12-07 16:27:06
问题 I can able to get the load balancers using below import boto3 elb = boto3.client('elbv2') lbs = elb.describe_load_balancers() How to get the instances of the lbs . Also How Can I fetch the load balancers which state is not active as describe_load_balanacers only give state active load balanceres. 回答1: Classic Load Balancer Use: client = boto3.client('elb') Then describe_load_balancers() results include a list of instances: 'Instances': [ { 'InstanceId': 'string' }, ], Application Load

SilverStripe behind load balancer

谁说我不能喝 提交于 2019-12-06 05:55:08
I've got an instance of SilverStripe running on two servers behind an AWS load balancer. To share the session information I'm running Elasticache Redis server. I'm setting my php session store info as such: ini_set('session.save_handler', 'redis'); ini_set('session.save_path', 'tcp://127.0.0.1:6379'); After I've signed into the admin section of the CMS I can jump between servers and it remembers me, however when switching between sections in the CMS the main section doesn't render (an AJAX call). From what I can tell the other server doesn't realise (which ever one you request from second) you