amazon-elb

How to fix WordPress HTTPS issues when behind an Amazon Load Balancer?

核能气质少年 提交于 2019-11-29 20:51:20
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 issues such as endless redirect loops, and HTTPS warnings ("Some content on this page is being requested in a non-secure way..."). I found a solution here, but requires modifying WordPress core, which is no good for updatability: https://wordpress.org/support/topic/when-behind-amazon-web-services-elastic-load-balancer-causes-endless-redirect Is there a way to fix this without modifying WordPress core?

Amazon ELB for EC2 instances in private subnet in VPC

余生长醉 提交于 2019-11-29 19:40:46
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 the ELB, it will not get any connections. If I attach both subnets to the ELB then it can access the instances, but it often will get time-outs. (Refer Screenshot 1) If I attach to only public subnet then my instance attached to ELB gets OutOfService because I do not have any instance in the Public Subnet, instance count shows 0. (Refer Screenshot 2) Screenshot 1: Both subnets attached Screenshot 2

AWS Route 53 - Domain name route to different ports of an Application load balancer

[亡魂溺海] 提交于 2019-11-29 10:24:21
问题 We are implementing a micro-services architecture in AWS. We have several EC2 instances which has the micro-services deployed on different ports. We also have an internet facing Application Load Balancer, which routes to different services based on the port. eg: xxxx-xx.xx.elb.amazonaws.com:8080/ go to microservice 1 xxxx-xx.xx.elb.amazonaws.com:8090/ go to microservice 2 We need to have a domain name instead of the ELB, the port should not be exposed through the domain name as well. Almost

Why can't my ECS service register available EC2 instances with my ELB?

风流意气都作罢 提交于 2019-11-29 03:33:31
I've got an EC2 launch configuration that builds the ECS optimized AMI. I've got an auto scaling group that ensures that I've got at least two available instances at all times. Finally, I've got a load balancer. I'm trying to create an ECS service that distributes my tasks across the instances in the load balancer. After reading the documentation for ECS load balancing, it's my understanding that my ASG should not automatically register my EC2 instances with the ELB, because ECS takes care of that. So, my ASG does not specify an ELB. Likewise, my ELB does not have any registered EC2 instances.

How should I restrict load balanced Web traffic to my Elastic Beanstalk environments?

♀尐吖头ヾ 提交于 2019-11-29 02:35:59
I'm trying to configure access to my EB environments, and would like to restrict HTTP access (through the ELB) to certain IP addresses. I have an out of the box EB app (a bunch, actually, with a few environments each) and would like be able to (a) restrict access to specific sets of IPs while (b) having all traffic come through the ELBs. Critically, I'd like to do this by (c) creating a few groups (e.g an admin SG that allows my IP, and a dev SG that allows a team's IPs, and a public SG that allows all IPs) and applying the groups as needed to each EB environment (often in different

.htaccess redirect loop when trying to add forced HTTPS rule (Amazon Elastic Beanstalk)

拈花ヽ惹草 提交于 2019-11-29 02:35:18
I started receiving this error after trying to incorporate a rule to force HTTPS in the production environment. The BWC_ENV environment variable can have a handful of different values: "prod", "stage", "ben_local", "nam_local", etc. Here's my .htaccess: RewriteEngine On # Force HTTPS RewriteCond %{HTTPS} !=on RewriteCond %{ENV:BWC_ENV} ^prod$ RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # Parse the subdomain as a variable we can access in our scripts RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{HTTP_HOST} !^www RewriteCond %{HTTP_HOST} ^([^\.]+)\.([^\.]+)\.([^\.]+)$

HTTPS not working (on AWS Elastic Beanstalk based site)

岁酱吖の 提交于 2019-11-29 01:56:21
问题 The site works perfectly fine on HTTP, however, does not work on HTTPS. I've followed all the steps on this page to create a self-signed certificate and add it to my Elastic Beanstalk environment. http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/configuring-https.html I'm also getting a successful certificate response back from IAM using the following command: aws iam get-server-certificate --server-certificate-name After updating Elastic Beanstalk with the certificate, I've also added

Elastic Beanstalk Change ELB Type

隐身守侯 提交于 2019-11-28 23:37:30
Does anyone know if it's possible to change an existing AWS Elastic Beanstalk environment to an Application Load Balancer (instead of a classic one). As far as I know only Application ELB's can be protected with AWS WAF and DDOS "Shield" so any existing EB app can't take advantage of these features since they have classic ELB's. Hello As Per AWS Documentation: The Elastic Beanstalk Environment Management Console only supports creating and managing an Elastic Beanstalk environment with a Classic Load Balancer. For other options, see Application Load Balancer and Network Load Balancer. Also Note

How do you get Amazon's ELB with HTTPS/SSL to work with Web Sockets?

我的未来我决定 提交于 2019-11-28 18:17:52
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://forums.aws.amazon.com/message.jspa?messageID=283293 . Anyone able to get this working? Are there any work around outside of running my own instance of HAProxy? I confirm, based on our own tests, that configuring ELB on TCP/SSL, instead oh HTTP/HTTPS, makes the trick with WebSockets. The drawbacks are two: 1) As already pointed by arturnt, you cannot get stickyness. 2) You will lose the ability

ELB and Apache configuration for HTTPS website

烂漫一生 提交于 2019-11-28 09:23:37
I'm setting up ELB for a https website and I have questions concerning the ports configuration... Right now I have this port configuration on the ELB: 80 (HTTP) forwarding to 80 (HTTP) 443 (HTTPS) forwarding to 80 (HTTP) And on my instance I have this Apache configuration: requests to *:80 redirected to https://www.mywebsite *:443 configured Apparently it's working but is it the right way to do? Thank you for your help Celine PS: When I started to configure the ELB I indicated 443 forwarding to 443 but then I had to answer strange questions for the authentication... Céline Aussourd The