amazon-elb

Haproxy behind ELB

a 夏天 提交于 2019-12-11 05:17:59
问题 I have HAproxy is behind an AWS ELB. As soon as i remove the ELB, i can get the custom error page. but, with ELB in the front of Haproxy, i get HTTP/1.1 504 GATEWAY_TIMEOUT Content-Length: 0 Connection: keep-alive. Can anyone tell me what is going on please? Thanks errorfile: HTTP/1.0 403 Forbidden Cache-Control: no-cache Connection: close Content-Type: text/html <html><body><h1>403 Forbidden</h1> Request forbidden by administrative rules. </body></html> 回答1: Me and a coworker just had the

CloudFront issue when using Load Balancer and Route 53

断了今生、忘了曾经 提交于 2019-12-11 05:14:39
问题 My idea is to use cloudfront to cache one entire site that is in EC2. But I am having a lot of trouble to do that. If I set the cloudfront option Forward Headers to none , the default index.html from apache is cached (probably because the CF is caching the LB URL). If I set Forward Headers to whitelist and add host in Whitelist Headers the site displays normally but I can see in the Response Header: X-Amz-Cf-Id:Ij8TsEU2hPehG53Op6LX1zFDmZfYWBOVFn8el8ApicCQYdYEi69HsQ== X-Cache:Miss from

How to redirect http request to https on java application installed on Amazon ElasticBeanstalk

自古美人都是妖i 提交于 2019-12-11 03:29:23
问题 I am using Amazon ElasticBeanstalk for my Java EE web application deployment. I want my application should be https only so i have configured SSL certificate on ElasticLoadbalancer. also i have configured web.xml file as <security-constraint> <web-resource-collection> <web-resource-name>HTTPSOnly</web-resource-name> <url-pattern>/*</url-pattern> </web-resource-collection> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> </security

AWS calculator, data processed by ELB

谁都会走 提交于 2019-12-11 02:28:37
问题 Can somebody explain what is a "Total Data Processed by all ELBs" in AWS calculator(http://calculator.s3.amazonaws.com/index.html). What exactly "data processed" means ? What is counted ? Headers ? Body ? What about HTTP POST file uploads ? 回答1: The charge is for... the data transferred through the Elastic Load Balancer http://aws.amazon.com/elasticloadbalancing/pricing That would be requests and responses, headers and bodies, uploads and downloads, and presumably the associated overhead of

How to have the static ELB endpoint for kubernates deployments

时光怂恿深爱的人放手 提交于 2019-12-11 02:26:16
问题 Every time I deploy a new build in kubernates. I am getting different EXTERNAL-IP which in below case is afea383cbf72c11e8924c0a19b12bce4-xxxxx.us-east-1.elb.amazonaws.com $ kubectl get services -o wide -l appname=${APP_FULLNAME_SYSTEST},stage=${APP_SYSTEST_ENV} NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR test-systest-lb-https LoadBalancer 123.45.xxx.21 afea383cbf72c11e8924c0a19b12bce4-xxxxx.us-east-1.elb.amazonaws.com 443:30316/TCP 9d appname=test-systest,stage=systest How can I

Traefik-ingress dashboard return 404

大憨熊 提交于 2019-12-11 00:58:17
问题 I deploy traefik ingress controller pod and then two services, one of them a LoadBalancer type for reverse-proxy and the other a ClusterIP for dashboard. Also I create ingress for redirect all <elb-address>/dashboard to my traefik dashboard. but for some reason I get 404 error code when I trying to request my dashboard at aws-ip/dashboard That is the manifest yamls that I use to set up traefik --- apiVersion: v1 kind: ServiceAccount metadata: name: traefik-ingress-controller namespace: kube

Websocket works on EC2 url but not on ElasticBeanstalk URL

匆匆过客 提交于 2019-12-10 19:29:12
问题 Background I have reverse proxy ( nginx ) pointing to ElasticBeanstalk ( ELB ) that is a singleInstance environment type and creates an EC2 instance ( EC2 ). I am using a dockerized nodejs app. nginx is the entry point for our infrastructure. Desciption From browser, I can call directly Websocket URLs of an EC2 and of ELB with the same result: Welcome to SockJS! For nginx I use the following config ( nginx conf.d/my.conf ) where I only change URLs of EC2 or ELB on the line beginning with

AWS Nginx “upstream prematurely closed connection while reading response header from upstream”

一曲冷凌霜 提交于 2019-12-10 19:15:01
问题 I use AWS: ELB (classic) → EC2 (with Node.js) Problem. Sometimes some requests return 502 Bad Gateway error. In Nginx error log a I see "upstream prematurely closed connection while reading response header from upstream" error. Not timeout issue. This error happens the same second this request in handled by Node.js application. So it is not a timeout issue because of the long response. Client doesn't break connection. I tried to make request programaticly (to be sure that client doesn't break

When using an internet facing ELB, do all of the instances behind the load-balancer have to have their own public IPs?

寵の児 提交于 2019-12-10 16:07:22
问题 I'm configuring internet facing load balancing on my AWS deployment and there's one issue I can't seem to get. I understand that ELB uses DNS records to load balance between the IPs of the instances, but do I have to assign elastic (public) IP addresses to my web servers? If I want to load balance between 10 internet facing web servers, do I really need 10 elastic IPs? Or is there a way to use ELB with one elastic IP and one DNS record? Thanks! 回答1: Your instances do not need their own

Is it possible to have an internal load balancer with elasticbeanstalk to create a private service?

五迷三道 提交于 2019-12-10 11:44:01
问题 I have an api that I deploy using elasticbeanstalk, and I wish to make it completely internal so that it cannot be accessed from the public Internet. I am doing this because I only want the service to be accessible via our other services (that each run in their own VPCs and are all deployed via elasticbeanstalk). Is it possible to use an internal ELB with elasticbeanstalk? Is this even what I need to do? Can VPC peering help me here? The ultimate aim is that the api needs to have some http