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
132 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
69 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
109 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
90 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
50 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
1answer
735 views

Amazon RDS load balancing and performance

My question is simple. Is it possible to load balance rds (master and read-replicas) using the same haproxy instance used for application load balancing? This would mean that the IP of the ...
0
votes
0answers
87 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
60 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
747 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
280 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
2answers
339 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 ...
0
votes
2answers
246 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 ...
1
vote
0answers
282 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 ...
0
votes
1answer
345 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
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
51 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
650 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
2answers
2k views

Nginx Retry of Requests ( Nginx - Haproxy Combination )

I wanted to ask about Nginx Retry of Requests. I have a Nginx running at the backend which then sends the requests to HaProxy which then passes it on the web server and the request is processed. I am ...
0
votes
1answer
272 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 ...
0
votes
1answer
418 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 ...
3
votes
1answer
204 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
0answers
165 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 ...
-1
votes
1answer
93 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
1answer
438 views

HAProxy - ssl client ca chain cannot be verified

Situation: I want this to work: requests come from clients and goes to haproxy through 443 port (ssl) and then it must go to backend on 80 port. I have server certificate given by intermediate ca ...
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 ...
0
votes
0answers
134 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
496 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 ...
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 ...
0
votes
1answer
100 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 - ...
6
votes
2answers
982 views

Haproxy using 10GB Memory and 100% CPU with 50k connections

On a Ubuntu 14.04 x64 server, Haproxy uses 3.3 GB of memory and 6.8 GB of swap, while handling 52k connections. The CPU usage also keeps spiking to 100% before most of the traffic was redirected to ...
1
vote
2answers
848 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
87 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
277 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 ...
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 ...
2
votes
0answers
189 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 ...
1
vote
0answers
83 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 ...
3
votes
1answer
2k views

HAProxy Front End [closed]

I've got a very tech-savvy client who want me to set up a haproxy instance for them. I have no troubles doing this, and adding the initial config, however they're quite good technically and enjoy the ...
6
votes
1answer
861 views

Will this HAProxy “restart script” work as gracefully I think it will?

I put this script together from various places. What I am hoping is that it will do the following once run: Pause all "NEW" http traffic for ports 80 and 443 - just "pause" them, don't give any ...
1
vote
0answers
225 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
2answers
97 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
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 ...
1
vote
2answers
4k views

HaProxy - Http and SSL pass through config

I've currently got an HaProxy LB solution in place and everything is working fine however we are having an issue with a very few clients who cannot get to our site via HTTPS (SSL) they can browse our ...
1
vote
1answer
3k views

HAProxy and Intermediate SSL Certificate Issue

We are currently experiencing an issue with verifying a Comodo SSL certificate on an Ubuntu AWS cluster. Browsers are displaying the site/content fine and showing all the relevant certificate ...
0
votes
1answer
262 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 ...
1
vote
1answer
549 views

Disable HTTP logging for specific backend in HAProxy

How does one adjust logging level or disable logging altogether for specific backends in HAProxy? In the example below, both directives "http-request set-log-level err" and "no log" seem to have no ...
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
145 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
215 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 ...