Questions tagged [haproxy]

HAproxy is a TCP/HTTP load balancer which provides cookie-based persistence, advanced traffic regulation with surge protection, automatic failover, run-time regex-based header control, Web-based reporting, advanced logging to help trouble-shooting buggy applications and/or networks, and a few other features.

HAProxy is a TCP/HTTP load balancer which provides cookie-based persistence, advanced traffic regulation with surge protection, automatic fail over, run-time regex-based header control, Web-based reporting, advanced logging to help trouble-shooting buggy applications and/or networks, and a few other features.

2659 questions
18
votes
1 answer

haproxy: inconsistencies between private key and certificate loaded from PEM file

I am trying to use certificate signed for another server. I have both private key and certificate. My PEM file order is : subject=/C=***/L=*****/O=**********/CN=********* issuer=/C=***/O=*****Inc/CN=********Secure Server CA -----BEGIN…
Ufuk Yürük
  • 183
  • 1
  • 1
  • 4
17
votes
4 answers

Is it possible to rewrite HOST header in k8s Ingress Controller?

Due to some legacy application that relies on Host header to function correctly, I need to have an Ingress (proxy, etc) that capable of rewrite Host header and pass that to downstream (backend). Is there any Ingress Controller that supports this…
Agung Pratama
  • 3,666
  • 7
  • 36
  • 77
17
votes
2 answers

Haproxy route and rewrite based on URI path

I am trying to setup an Haproxy to load balance requests on a few backends identified by the uri path. For example: https://www.example.com/v1/catalog/foo/bar Should lead to the "catalog-v1" backends. Thing is each app responds on a different path…
leovrf
  • 605
  • 1
  • 6
  • 17
17
votes
2 answers

Haproxy ssl configuration - install root and intermediate certificate

After to much googling, i finally made my haproxy ssl to works. But now i got problem because root and intermediate certificate is not installed so my ssl don`t have green bar. My haproxy config global maxconn 4096 nbproc 1 …
Novkovski Stevo Bato
  • 1,013
  • 1
  • 23
  • 56
17
votes
7 answers

HAProxy random HTTP 503 errors

We've setup 3 servers: Server A with Nginx + HAproxy to perform load balancing backend server B backend server C Here is our /etc/haproxy/haproxy.cfg: global log /dev/log local0 log 127.0.0.1 local1 notice maxconn…
BnW
  • 592
  • 1
  • 3
  • 13
16
votes
0 answers

Reverse proxy with keepalive and re-resolve DNS according to TTL in nginx

Upstream blocks in nginx open source allow you to enable keepalive connections to reverse-proxied servers (docs: http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive). Syntax: keepalive connections; Default: — Context:…
Nick Meyer
  • 1,771
  • 1
  • 17
  • 29
16
votes
2 answers

How to create Floating IP and use it to configure HAProxy

I have recently tried to load balance my application using HAProxy and was able to do it successfully. Later, I have come across a concept called Floating IP, which can be used along with keepalived to make the load balancer highly available. I…
mahu
  • 163
  • 1
  • 1
  • 6
16
votes
2 answers

HAProxy - Configure HTTP frontend to listen on multiple ports

I have an HAProxy HTTP Frontend in my HAProxy config like so: frontend myaddress.net :10098 bind :80,:8080 mode http log global option http-server-close timeout client 14400000 timeout connect 60000 timeout tunnel 14400000 timeout…
dsw88
  • 4,400
  • 8
  • 37
  • 50
15
votes
2 answers

Failed to find a valid digest in the 'integrity' attribute for resource on a deployed emberjs application

I have an emberjs application which has been deployed and in google chrome browser im getting the following errors for 2 of the .js files. Failed to find a valid digest in the 'integrity' attribute…
Kay
  • 17,906
  • 63
  • 162
  • 270
15
votes
1 answer

HAproxy domain name to backend mapping for path(url) based routing

Does HAProxy support domain name to backend mapping for path based routing. Currently it does support maps for vhost: frontend xyz use_backend backend1 if { hdr(Host) -i myapp.domain1.com } use_backend backend2 if { hdr(Host)…
ajays20078
  • 368
  • 1
  • 3
  • 10
15
votes
8 answers

Any thoughts on RightScale and Scalr for dynamic Ec2 instance management

I'm looking for a cost effective tool for managing an web app on Ec2. Rightscale seems to the big dog and charges for it. Scalr looks like a more cost effective solution but it's hard to find out any real customer experiences.. The key aspects I'm…
Dom
  • 1,486
  • 2
  • 14
  • 22
15
votes
3 answers

Adding header to response for specific URLs with HAproxy

I have a simple condition in my HAproxy config (I tried this for frontend and backend): acl no_index_url path_end .pdf .doc .xls .docx .xlsx rspadd X-Robots-Tag:\ noindex if no_index_url It should add the no-robots header to content that should not…
Xeos
  • 5,975
  • 11
  • 50
  • 79
14
votes
1 answer

How to configure HAProxy to send GET and POST HTTP requests to two different application servers

I am using RESTful architecture. I have two application servers running. One should serve only GET request and other should serve only POST request. I want to configure HAProxy to loadbalance the requests depending upon the above condition. Please…
shrey114
  • 141
  • 1
  • 1
  • 4
14
votes
1 answer

X-Forwarded-Proto https in frontend or backend (HAProxy)?

I have setup a HAProxy in front of my backend server application to enable HTTPS. I have read that I need to set X-Forward-Proto https. In the haproxy.cfg file I have tried to do that in the frontend with: frontend haproxy bind :8443 ssl crt…
u123
  • 15,603
  • 58
  • 186
  • 303
14
votes
1 answer

HAProxy Loadbalancing TCP traffic

Using HAProxy, I'm trying to (TCP) load balance Rserve(a service listening in TCP socket for calling R scripts) running at port 6311 in 2 nodes. Below is my config file. When I run HAProxy, its statting without any issues. But when I connect to the…
Anand
  • 9,672
  • 4
  • 55
  • 75