HAProxy is a 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.

learn more… | top users | synonyms

0
votes
0answers
47 views

Strange haproxy behaviour

So I'm trying to set up a dual site haproxy (1.5.10) on Ubuntu 14.04. http://i.stack.imgur.com/EtdYo.png When I do service heartbeat restart on eartha, both machines go green briefly; then earthb ...
0
votes
0answers
49 views

Saving a cookie value in a stick table to later allow requests in HAProxy

I have an HAproxy with two URL-based routes: /route1 and /route2 (both under the same domain). These are the purposes of each one: /route1 contains the main website where you log in and get a cookie ...
2
votes
2answers
615 views

Configure HAProxy on Linux to accept 10K simultaneous connections

I have HAProxy 1.5 running on Ubuntu 14.04 (modified). It accepts connections on http and https ports. Two backend applications process requests using persistent connection. When I create around 2200 ...
5
votes
2answers
2k views

Load Balancing DNS Servers: UDP / TCP

I have been asked to rebuild our load balancing infrastructure in the data center. The original request was to load balance FTP servers. I tried doing that using the current load balancer (Piranha / ...
0
votes
1answer
340 views

HAProxy health checks and changing server state

I've poured through lots of docs and Google searches but can't seem to find an answer. I'm using HAProxy with several servers that take a while to start--initial loads on my local VM are about a ...
0
votes
2answers
247 views

How to use environment variable in haproxy?

I work with haproxy 1.5.2 My haproxy.cfg has this server definitions: server HALB_ucd1 ${UCD1_END_POINT_IP}:${UCD1_END_POINT_PORT} check port 8444 I set the UCD1_END_POINT_IP and ...
0
votes
2answers
242 views

Mixed content http https and haproxy

I have a problem with haproxy and mixed content. When I try to connect through haproxy ssl, the browser (in this case either Firefox or Chrome), in default configuration, blocks the mixed content - in ...
0
votes
1answer
413 views

Softlayer HAProxy with failover

I have 2 virtual servers on Softlayer, both running HAProxy. I am trying to set up failover with keepalived. Each server has a private IP and public IP, and they are on the same VLAN. I've tried many ...
1
vote
1answer
258 views

HAProxy Does Not Recover After Failed Check

All, I'm having an issue with HAProxy not recovering after a backend server is restarted. I'm not using the proxy for load balancing, but to direct different URLs to different servers (web and web ...
0
votes
0answers
163 views

Why does haproxy 1.5 give me a 503 error when proxying https traffic

Using http://seanmcgary.com/posts/using-sslhttps-with-haproxy, http://seanmcgary.com/posts/haproxy---route-by-domain-name, HAProxy official docs, and several other Google results as reference, I'm ...
3
votes
1answer
200 views

Proxy dropping custom headers with https

Problem : With HTTPS requests my proxy is dropping custom headers from the response : HTTP request : $ curl -I -x 127.0.0.1:5566 http://www.google.fr HTTP/1.1 200 OK ... X-Servedby: 50001 => My ...
0
votes
1answer
132 views

Haproxy replace whitespace in request URL with %20, how?

For example, I have header GET /yo?title=What a cool day HTTP/1.1 I want to replace whitespaces with %20 GET /yo?title=What%20a%20cool%20day HTTP/1.1. I want replace because backends with nginx do not ...
-1
votes
1answer
92 views

Load Balancing VPN servers (Ubuntu)

I am trying to load balance two VPN servers, that are located quite far from one another. I am using Ubuntu with pptpd, is there anyway to load balance those two servers? So user connects pptp to ...
0
votes
0answers
131 views

HAProxy SSL client authentication based on domain

I'm trying to achieve the following : If I request subdomain1.mydomain.com, terminate SSL and forward to backend. If I request subdomain2.mydomain.com, terminate SSL + authenticate with client cert, ...
0
votes
0answers
489 views

server timeout and retry in HAProxy 502

We have a strange HA Proxy issue. Although we solved it, we don't really understand why. The setup is very basic: a load balancer and an Apache backend. Our problem arises for a http request which ...
0
votes
1answer
99 views

HAProxy - Client Request Continuously Switching Servers

I have configured a Software Load balancer with HAProxy. Here are the details : Load Balancer 1 (Master) - 10.0.0.2 Load Balancer 2 (Slave) - 10.0.0.3 Virtual IP that load balancer shared is - ...
1
vote
2answers
840 views

HAProxy returns Bad Request (Invalid Host) for seemingly no reason

I've been trying to test a setup that looks like this: Website: Http GET Request -> Nginx -> HAProxy -> .Net application I've placed Nginx and HAProxy on the same Debian machine. However, HAProxy ...
0
votes
0answers
86 views

Apache's mod_dir keeps redirecting to wrong Port

I have a setup with a HAProxy in front of a Varnish cache who requests an Apache2 server. The Apache is listening on an internal IP on Port 12345 and is configured with UseCanonicalPhysicalPort Off ...
5
votes
0answers
276 views

HAProxy URL rewrite on 404 error

How to make HAProxy rewrite to a different back-end when the first is missing the file? What I need is errorloc but making a rewrite instead of redirect, so the client is not aware of redirect. We ...
4
votes
0answers
1k views

HAproxy for load balancing vsFTPd servers

I have successfully set up a load balancing environment using HAProxy and 2 FTP servers running vsftpd. This is what the setup looks so far: Proxy: ftp00 | 192.168.2.135 (public, eth0) | 10.11.130.1 ...
2
votes
0answers
186 views

Intermittent Connection Issues on High Traffic Servers

Some brief background: We've been getting reports of very intermittent connection issues from our users. Several times per day, users will have to reload the page they're on due to a connection ...
0
votes
0answers
273 views

ACL at HAProxy shows NOSRV

I have 3 backends in HAProxy 1.5.10: "WEB", "API", and "SSL" for web and api. For SSL termination I'm using ACL with SNI. Here is my config: frontend ssl mode tcp bind 0.0.0.0:443 ssl crt ...
2
votes
1answer
2k views

HAProxy with SNI and different SSL Settings

I have HAProxy for my two sites, one of them public and one private. www.mysite.com private.mysite.com Atm, I'm using haproxy like this: frontend mysite_https bind *.443 ssl crt /etc/mycert.pem ...
-1
votes
0answers
393 views

haproxy proxy protocol x-forwarded-for

I'm using haproxy instances behind AWS ELB. For HTTP Rest, i works like a charm. Now i want to dispatch websockets and have to switch my AWS ELB to TCP mode. I Want to get realip from by backend ...
0
votes
1answer
269 views

Puppet agent unable to connect through Load Balancer

I am currently trying to setup a load balanced puppet infrastructure. I am using puppetserver for the puppet server(s) and puppet agent 3.7.3 for the clients. Currently I have four servers setup in ...
1
vote
0answers
81 views

HAproxy freeze / crash / stops accepting cottections

I've seen similar posts for my issue but none of them seem to be relevant for my case. I've had my HAproxy configured for the past 3 months roughly the same and did not encounter any issues. The ...
1
vote
0answers
221 views

haproxy client certificate authentication signed by 'common' CA

I am setting up haproxy as an SSL terminator/load balancer in front of an API that we need to expose over the internet to a customer. The plan was to use mutual (2-way) SSL/HTTPS to verify that both ...
0
votes
2answers
1k views

HAProxy: Redirect Root Site Root to Subsite

I would like to redirect the root of my website to a subsite by default. Like http://www.domain.com/ ---> http://www.domain.com/subsite I have tried this, but this matches all the URLs anyway: ...
0
votes
1answer
258 views

Rate limit new connections in IPTables instead of Nginx or HAProxy?

I would like to use some form of rate-limiting both 1) new TCP connections and 2) requests over an existing connection to HTTP(S). I will probably handle #2 with nginx or HAProxy (because I have more ...
0
votes
0answers
88 views

using haproxy acl for website matching

I am working with acl statment in haproxy 1.5 as shown below. The idea is that for this specific site cop backend should be used but its not working. I tried with hdr(dom) and few other options but ...
0
votes
2answers
96 views

Haproxy: How to balance traffic within directory reached?

I want to know if there's a way to balance the traffic within directories using haproxy. I have haproxy balancing all HTTP traffic to server1 & server2. What I want is to balance all images ...
0
votes
1answer
270 views

HaProxy + CloudFlare

I am trying to setup HaProxy with DDoS protection rules (rate limiting). However, I think HaProxy is now rate limiting CloudFlare IPs instead of Visitor/Real IPs. (note: my site itself is fine, ...
1
vote
1answer
106 views

Force Apache proxy_balancer to specific worker

I would like to have two tomcat servers behind a proxy_balancer so I can do rolling deploys. I have this working so I can take down one tomcat and the other takes futire requests <Proxy ...
1
vote
1answer
141 views

Slow POST upload (Linux kernel Tuning)

I'm working in a Caucho Resin backend with an HAproxy configured in front of them, in a dedicated server. Now I'm dealing with a file upload problem. Our web application allows a file upload for ...
0
votes
0answers
212 views

Keepalive best practices for Nginx-Haproxy-Apache chain

I am using Nginx to serve static content, and Haproxy to proxy requests to multiple Apache2 backends discovered via Zookeeper. Nginx -> Haproxy -> Apache2 According to the official Nginx website, it ...
0
votes
0answers
68 views

Apache not forwarding to HAProxy

Scenario: I have a mobile application that needs to talk to a service hosted by an IBM Datapower appliance. However, the Datapower appliance requires bi-directional SSL and that will not work for ...
0
votes
1answer
176 views

Can HAProxy select a backend based on a lookup table?

Let's say I have items A, B, and C. I have two backend servers: server01 and server02. Item A can be handled by server01, item B and C can be handled by server02. New items and servers get added and ...
2
votes
0answers
78 views

HAProxy: Limmit concurrent connections based on HTTP header field

I try to limit the number of concurrent connections using HAProxy stick-tables based on HTTP header fields. I could find plenty of examples using IP addresses, but this doesn't work in my case. Our ...
2
votes
0answers
158 views

Clustering with Jboss EAP and Load balancing with Haproxy

I'm doing load balancing with HAProxy and use JBoss EAP as application servers. The Haproxy server is configured to route incoming requests to the application servers. How can I integrate Jboss EAP ...
0
votes
1answer
150 views

HAProxy SSL Handshake failure on one server but not the other

I've been searching the net extensively but I'm not able to find a solution to this problem. I have setup two servers behind KeepAlived and HAProxy. When both servers are up, I can see that both ...
0
votes
2answers
320 views

HAProxy doesn't keep-alive http connection

I've switched on the option http-keep-alive in the defaults, as well as tried it in the frontend definition. But the Response Headers in the browser never show up keep-alive, although its there in ...
2
votes
1answer
1k views

Weird interaction with systemctl with Haproxy on CentOS 7

Running haproxy through systemctl is different than running it manually. on manual start, everything works. starting through systemctl, haproxy is not able to find the service it proxies, and ...
1
vote
1answer
271 views

Default backend in haproxy

I wonder whether there is a way to configure a default backend in haproxy, so it balances requests among a pool of backend servers (three in the example below), keeping the default backend as a ...
0
votes
1answer
234 views

How do I inform HAProxy that my server is back up?

I'm a bit of a HAProxy newbie - I've got 3 docker containers, one running HAProxy with the following config: global log ...
0
votes
1answer
108 views

How do I show an empty error page on HAProxy for a single URL?

Question I have a single URL say: http://foo-backend.com/display_blank_when_errored On a site behind an HAProxy load balancer let's say the front-end site is: http://foo.com When an error happens ...
0
votes
0answers
114 views

HAProxy use cookie to drain server

I have the following segment in my haproxy.cfg listen stats :80 stats enable ...
1
vote
1answer
119 views

How to reconnect to the backend with HAProxy

I'm new in working with HAProxy. I couldn't figure out how to make HAProxy to reconnect to backend that was down and started up back again. I have a configuration of two backend servers. When they ...
1
vote
2answers
4k views

Implementing TCP Sticky Sessions With HAProxy to Handle SSL Pass-through Traffic

How can we implement session stickiness in HAProxy when SSL must terminate on the backend servers? We need the stickiness because backends cannot share sessions. This is my original configuration: # ...
1
vote
1answer
164 views

Request doesn't hit port 80 on HAproxy

I'm configuring HAProxy to redirect http to https, but it doesn't seem to work. The configuration I use is: /etc/hosts content 127.0.0.1 example.com Haproxy configuration frontend http mode ...
4
votes
1answer
5k views

redirect rewritten url using haproxy

Using haproxy version 1.4.24 on Ubuntu 14.04 I would like to use haproxy to rewrite and redirect urls which are no longer valid to their new equivalent. I am already using haproxy as the reverse ...