Questions tagged [haproxy]

HAProxy is an open source, very fast and reliable solution offering high availability, load balancing, and proxying for TCP and HTTP-based applications. It is particularly suited for web sites crawling under very high loads while needing persistence or Layer7 processing.

See also:

2099 questions
1
vote
0 answers

How to configure HAProxy to buffer the whole request including full body (buffering reverse proxy and big file uploads)?

We have a setup where front facing HTTP2 server is HAProxy and multiple backend servers run Apache+PHP. We have set HAProxy configuration option http-buffer-request. End users upload files (using basic file upload using
with method POST) and…
Mikko Rantalainen
  • 1,030
  • 14
  • 30
1
vote
0 answers

HAProxy : SSL/TLS termination + ports forwarding

I'm writing here, because I use HAProxy as reverse-proxy with SSL/TLS termination, and I don't know how to configure it to forward HTTPS requests on specific port to the same on my HTTP backend's servers. I'm searching to do something like this…
1
vote
1 answer

HAProxy: SSL Termination with exception for a specific domain Wildcard SSL-Certificate request

I am new to HAProxy and got most parts working as expected. The current setup is: If I add a new site to one of the balanced (behind the LB) servers, the certificate is issued and served by the Load Balancer. So SSL Termination is working fine with…
Philipp
  • 13
  • 1
  • 4
1
vote
1 answer

HAProxy: Using path variables to match one acl to a backend, depending on variable

I would like to setup HAProxy to redirect to a particular backend based on the variable in the acl rule. As an example, right now, I have a standard 1-to-1 setup for the ACLs and the corresponding backends: #Due to privacy concerns, this is not the…
SVill
  • 77
  • 3
  • 13
1
vote
1 answer

Too many redirects NSX Load Balancer (HA Proxy) Application rule

We are trying to do a redirect from / to /access/signin however with the following application rule we see too many redirects (looping) for HTTPS, HTTP is working fine. acl TEST-RDR hdr_dom(Host) -i www.test.com acl TEST-RDR path_beg…
Cousty
  • 11
  • 2
1
vote
1 answer

HAProxy add HTTP response headers to the stats pages

Is it possible to somehow add arbitrary HTTP response headers to the "stats" pages in HAProxy? haproxy version 1.7.x. Regular stats setup: listen view bind *:10002 stats enable stats uri / stats hide-version Customizing and trying…
sastorsl
  • 362
  • 2
  • 15
1
vote
2 answers

Forward SSL traffic and authentication certificates through HAProxy

I have an nginx from my client where I can POST successfully with: curl -v --cacert ca.crt --cert client.crt --key client.key -POST https://nginx:8443/api/ -H 'Content-Type: application/json' -H 'cache-control: no-cache' -d@test.json Now I…
1
vote
1 answer

What are the possible causes for Layer 4 and Layer 7 timeouts in HAProxy?

I am copying my Stackoverflow question : https://stackoverflow.com/q/63683206/6344947 I saw that I was getting 503 for my application when I was hitting the API's. When I checked the HAProxy LB stats for my instances, I found that one of them was…
1
vote
1 answer

HAProxy reverse proxy config

I want to migrate some websites to a new server. It takes a couple of days to get all the DNS changes done, so I wanted to set up a HAProxy reverse proxy to redirect all traffic from the old location to the new location. I'm not very experienced…
Douwe
  • 15
  • 5
1
vote
1 answer

Connections to Webmin via HAProxy are forwarded to port 10000 (HAProxy listening on 443)

EDIT Own solution at the of the question. I am using a HAProxy (on a rented virtual machine) to be able to connect to some applications I am running at home. This works perfectly fine for almost all of my backends. What doesn't work very well is the…
derdeagle
  • 111
  • 2
1
vote
1 answer

HAProxy not sending health checks to backup servers

In my haproxy.cfg file, I have the following config for the backend backend app balance roundrobin server s1 127.0.0.1:8000 check server s2 135.111.29.95:80 check server b1 135.111.29.96 check backup Yet, when I check the…
1
vote
1 answer

HAProxy + uwsgi all connection "Connection reset by peer"

I've a problem with UWSGI + HAProxy. for all the connections that get closed, i see this log in uwsgi file [uwsgi-http key: client_addr: 192.168.173.250 client_port: 57002] hr_read(): Connection reset by peer [plugins/http/http.c line 917] i can…
EsseTi
  • 255
  • 3
  • 13
1
vote
1 answer

HAProxy check host name

We run haproxy as load balancer and to provide backup functionality for our API service. Our API is a Java Application using the Jersey framework running in Apache Tomcat. Some time ago we ran into a bad performance problem on the side of our API…
mr.simonski
  • 247
  • 4
  • 13
1
vote
0 answers

Ingress not working with cloudflare proxy option

I have cloudflare on it added A record of haproxy loadbalancer, behind loadbalancer are worker nodes of kubernetes cluster and ingress controller. Ingress routing traffic good when proxy option on CloudFlare on A record is disable as soon I enable…
1
vote
1 answer

Is there an alternative for the error_page 497 option from nginx for haproxy?

When using nginx I can just use the 497 error code specific to nginx 497 HTTP Request Sent to HTTPS Port and redirect to https with this rule: error_page 497 https://$host:$server_port$request_uri; When using haproxy the only solution I know of…