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

1
vote
1answer
13 views

HAProxy FrontEnd's IP Added to Header

Using HAProxy 1.5, is it possible to add a request header whose value is the IP address used by a frontend whose bind uses a wildcard? For example, given the following configuration, is there ...
0
votes
0answers
10 views

How haproxy understand URLs, URI, HOSTs

I know that haproxy understand urls, but here when I want to test if haproxy is up I acess the machine name at browser and it redirects to the desired node.js server. This request is usually a ...
0
votes
2answers
23 views

SNI for multi tenant load balancing in 2015

We're a multi-tenant service and terminate our SSL at our load balancers (HAProxy + Apache for SSL termination), this has caused growing pains due to dedicated IP requirements. But times have changed ...
0
votes
0answers
10 views

How to config iptables to forward connection from/to internal VM

I have an host with proxmox and some virtual machine installed, the first machine is a proxy with haproxy that forward the request to other VM and in proxmox host i have this iptables script: ...
0
votes
0answers
7 views

Inject header in HAProxy redirect function

I have HAProxy 1.5.8. I have this basic 301 rule : frontend http_frontend bind *:80 mode http redirect location https://xxxx.com code 301 The response looks like this : HTTP/1.1 301 Moved ...
0
votes
0answers
13 views

Can haproxy run user-defined shell script for healthy checking?

When configuring HAProxy, we can assign user-defined checker by using a .sh script and xinetd. I wonder why does not HAProxy call the script directly and check exit code? I'm using ubuntu 12.04 LTS. ...
0
votes
0answers
11 views

Multiple conditions in redirect for HAProxy

I'm having some difficulties using the redirect option when having multiple named ACL's I'd like to use for conditions. Say I have five hostnames that I have put into named ACL's and now I want to ...
0
votes
1answer
31 views

It is possible to configure more than one haproxy in different machines to listen to same request?

I'm wondering if it is possible to create a cluster of haproxy, so if the haproxy machine fails, another haproxy gets the job done. I tried to change the frontend configuration to listen to other ...
0
votes
0answers
10 views

Limit bandwidth per backend with haproxy

I want to limit bandwidth in each backend (I have around 3000 backends), if my backend is over limit I want to have a clear http response. My backend setup : stick-table type ip size 200m store ...
0
votes
0answers
18 views

Empty GET / HTTP/1.1

I'm wondering why I'm seeing all these empty HTTP GET requests in my Node / Express server logs. We're behind HAProxy (if that matters) [2015-02-25T01:33:31.592Z] INFO: xxxx-web/20106 on ...
0
votes
1answer
28 views

HAProxy + keepalived + multiple backend farms / virtual IP addresses

we have several backend farms (HTTP, FTP, etc), basically one farm for each customer, and I am about to rebuild our load balancing infrastructure, moving from Piranha to HAProxy. Since we are using ...
0
votes
0answers
25 views

HAProxy tcp load balancing with an https check fails

I'm trying to load balance a posgres tcp connection, with a node check done via a python script residing on an https connection. conf file looks like so: global log 127.0.0.1 local2 ...
0
votes
0answers
37 views

HAProxy but still single point of failure

I'm setting up a test cluster - Maria Galera Cluster on 3 physical nodes with HAProxy. Its working, but I've made some kind of beginner error which I can't seem to resolve - so hopefully someone can ...
1
vote
0answers
32 views

Nagios check_http gives 'HTTP/1.0 503 Service Unavailable' for HAProxy'd site

I asked this on stackoverflow, but I think it's better suited for here. Can't figure this one out! OS: CentOS 6.6 (Up-To-Date) I get the following 503 error when using my nagios check_http check ...
2
votes
0answers
22 views

HAProxy switch to backup on 500 errors and/or server down

I'm setting up an HAProxy in front of only 2 backend servers, with a particular configuration: any request should go to server A; but, if server A returns a 5xx error code, all request should go to a ...
0
votes
0answers
24 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
10 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 ...
1
vote
2answers
39 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 ...
-2
votes
0answers
25 views

Forward real ip haproxy

Okey so I use haproxy to forward a TCP connection but the proxy IP shows instead of their IP which is quite annoying. How can this be fixed? I run on centOS btw.
3
votes
2answers
311 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
24 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
1answer
35 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
54 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
49 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 ...
0
votes
0answers
33 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
44 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
32 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
29 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
36 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
54 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
40 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
39 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
78 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
23 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 ...
2
votes
0answers
75 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 ...
1
vote
0answers
75 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
68 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
37 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 ...
1
vote
1answer
145 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 ...
0
votes
0answers
64 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
72 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
31 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 ...
0
votes
0answers
37 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
63 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
98 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
44 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
33 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
89 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
30 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
57 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 ...