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
0answers
174 views

Exchange 2013 MAPI over HTTP Load balancing HAProxy

We have successfully managed to deploy HAProxy as a Layer-4 load balancer for all our Exchange 2013 SP1 HTTP based traffic (Autodiscover, OWA, EXP, EWS, MAPI, etc.) For various reasons, however, we ...
1
vote
1answer
84 views

Access to Proxy Protocol address within HAProxy

I am running HAProxy that is receiving layer 4 proxy protocol from an upstream source. I have a need to create a custom HTTP header with the address contained there. I can't seem to find how I can ...
1
vote
1answer
55 views

How to select different backend based on URI when using “mode tcp”

I am using haproxy version 1.6.2 I have enabled http2 using the config below which I need to use "mode tcp". But once I have switched from "mode http" to "mode tcp" I couldn't use acl path_beg to ...
1
vote
2answers
70 views

Clustered cron with one server only overlap allowed

I've setuped load balancers: lb1 (active) and lb2 (passive), Glustered web servers: web1 (active), web2 (backup), and some clustered database. Both web servers and databases are A pointed to the VIP ...
1
vote
2answers
66 views

server crashes under high load

We are running a setup that has gotten a lot of media attention these days and we expect the traffic to continue. We have 1 haproxy loadbalancer, 3 application servers(2 image, 1 general) and one ...
0
votes
1answer
254 views

Haproxy: SSL encrypted backend with self-signed cert

I'm working to configure HAProxy such that it will terminate the SSL so there's only one place to configure the purchased SSL cert. However, I'd prefer that the connection to the backend servers also ...
1
vote
2answers
37 views

Reverse proxies and ssl, should I use the same certificates

Currently I'm using nginx as a reverse proxy over https and everything that is proxied is itself over https. SSL termination happens at Nginx and since the traffic is over https it get encrypted again ...
2
votes
2answers
49 views

HAProxy MySQL check failes permanently and unexpected

I am running HAProxy to spred the load between 3 mysql galera nodes. Unfortunatelly HAProxy shows that node2 is permanently offline while the other nodes work perfectly fine. The config looks just ...
1
vote
0answers
49 views

Error 11 on HAProxy startup - How to debug?

I am running HaProxy on ubuntu 14.04. The system works, but I do get an alert during startup which I would like to debug: sudo /etc/init.d/haproxy restart * Restarting haproxy haproxy [ALERT] ...
1
vote
0answers
52 views

Varnish - behind, in front of, or instead of load balancer(HAProxy/nginx)

I intend to run a few tiny ARM "physical cloud" servers behind a load balancer(either HAProxy or nginx itself), but i can't decide where to put Varnish in the whole mess. I can either have it on each ...
0
votes
1answer
64 views

haproxy fails to forward to backend server

i'm trying to configure haproxy on a red hat 7.1 machine (haproxy 1.5.4) to proxy a few nodejs instances. if i try to access on port 80 (haproxy frontend) it returns error 503 if i try to access on ...
1
vote
0answers
55 views

haproxy anonymous frontend, authorized backend with NTLM

Need to provide an anonymous readonly access to an svn repository AFAIK, haproxy cannot auth on backend by itself. There's a working configuration for haproxy with basic auth. How to migrate it to ...
1
vote
1answer
29 views

adding application server does not improve preformance with haproxy

I am running a haproxy load balancer in front of two application servers that serves images. The problem is that if i use one server or two does not make a difference on performance (see added ...
1
vote
1answer
66 views

How to convert this from nginx to haproxy

How can I write this proxy pass example from nginx: code one: location /appDir/ { proxy_pass https://Name/appDir/; } to haproxy? additionally: the below is from haproxy site. code two: ...
2
votes
0answers
43 views

HAProxy failing at random times (backend has no server available!)

I have a CentOS 7.1 (x64) droplet configured to load balance between 2 apache/php servers. I have it working perfectly, but randomly throughout the day it reports the following: haproxy[12947]: ...
1
vote
1answer
69 views

Haproxy doesn't go to the write backend after coming back from Nginx Reverse Proxy

I am using haproxy and nginx to load balance as well as protect (through naxsi in nginx) my web servers. Haproxy is working fine but the minute I send it through nginx it defaults everything to the ...
1
vote
1answer
63 views

Cannot bind port on haproxy

I'm trying to bind multiple certs on different ports but I'm getting the following error: [ALERT] 308/144418 (17671) : Starting frontend https_in: cannot bind socket [10.12.61.12:444] This is the ...
-4
votes
1answer
26 views

Restart service on file change

I would like HAProxy on my Ubuntu 14.04 to restart each time I SCP a new HAProxy config file. What is the easiest/cleanest way to achieve this?
1
vote
2answers
65 views

HaProxy TCP Subdomains

global log 127.0.0.1 local2 chroot /var/lib/haproxy pidfile /var/run/haproxy.pid maxconn 4500 user haproxy group ...
0
votes
0answers
10 views

How to block fake googlebots with haproxy? [duplicate]

We want to block all requests coming from non google ips but identify as a bot from google.
2
votes
0answers
64 views

Haproxy Nginx/Naxsi to Web servers not working

I have a haproxy/nginx/naxsi setup for load balancing and security. Traffic is supposed to come into haproxy then to nginx/nasxi then finally to the web servers if they passed the WAF. We also have a ...
0
votes
2answers
42 views

Selectively redirect to HTTPS using HAProxy

I have HAProxy configured with a single front end that accepts both HTTP and HTTPS connections. All backends are HTTP only. I would like to force certain paths to use HTTPS (/Login etc) so HAProxy ...
0
votes
0answers
36 views

how to set TOS of HAProxy outgoing tcp connections

I'm using HAProxy TCP mode. and want to set TOS of outgoing tcp connections for policy routing. seems lua function TNX.set_tos could to it, but i don't know how to call this function. ...
0
votes
2answers
61 views

How can I use NAT or haproxy to reroute a certain host name?

I have an infrastructure where all requests made by internal subnets have to pass through a server in the "open to the world" subnet, where my NAT instance is (I'm using AWS). I want to create a host ...
0
votes
1answer
72 views

How can I proxy API request to my docker container?

I have a docker container that is running a node.js application. From the system the container is running on I can do things like ... curl http://<IP address of my docker container>/users .... ...
0
votes
0answers
12 views

Could dhclient be causing haproxy to stop listening?

I've noticed every 7 days HAProxy stops responding to requests correctly - it automatically makes firefox download a blank file in place of the website. Upon inspecting the server - everything seems ...
1
vote
0answers
14 views

HAProxy qtime meaning

According to the HAProxy documentation the metric qtime represents the average queue time over the last 1024 requests. My question is, does this metric average ALL requests, or just those that have ...
2
votes
2answers
121 views

How is server replication implemented when setting up a reverse proxy environment?

I've been reading and having a go at setting up some different server cluster environments. I have it working correctly using various Linux distributions. The basic set-up goes as follows: ...
-3
votes
1answer
394 views

How do I use haproxy to load balance 2 postfix servers?

I want to create a load balanced postfix using haproxy. Incoming connections will be received by Haproxy who will roundrobin between two postfix servers. I have configured haproxy. However I am new ...
0
votes
1answer
56 views

Already enabled x-forwarded for in haproxy, but mod_remoteip 2.2 backport still doesn't work

I'm using haproxy to forward requests to Apache 2.2 bundled with modsecurity 2.7 and OWASP_CRS. I have enabled insertion of the X-Forwarded-For header in the haproxy config: defaults: option ...
0
votes
0answers
25 views

HAProxy Statistics

In HAProxy Statistics, there is a line Running tasks: 1/2029; idle = 85 % What does it mean 1/2029? PS: For us, SSL connection is very slow with HAProxy SSL termination.
5
votes
1answer
108 views

HAProxy SSL Connection

We are using HA-Proxy version 1.5.11 2015/01/31, and from yesterday we noticed that all the request to our service over https is very slow. From the Chrome Developer Console, we can see the following ...
0
votes
1answer
72 views

Custom headers not logging in HAProxy

I am trying to set and log custom headers in HAProxy in order to get data so I can set up our DDoS/Anti Abuse configs. The trouble I am having is that I can set headers, and I can capture headers not ...
1
vote
2answers
451 views

ERROR 2006 (HY000): MySQL Server Has Gone Away… (HaProxy / Galera)

I setup a cluster of 3 MariaDB servers in a multi-master setup which is working fine. I added a 4th server for HaProxy to load balance and round robin so that we can have a little redundancy which is ...
0
votes
0answers
391 views

haproxy 503 Service Unavailable with NOSRV

Im running HAProxy with 3 Apache servers as backend servers. problem is every 2 or 3 request ive got 503 Service Unavailable error and in log files i have this message : Oct 19 14:46:57 ...
0
votes
1answer
57 views

Squid not redirecting SSL as HTTP

I want all my traffic to a specific domain to be sent through a parent proxy, here is my squid conf: acl localnet src 10.0.0.0/8 # RFC1918 possible internal network acl localnet src 172.16.0.0/12 ...
1
vote
1answer
165 views

Reg Exp for URL in HAProxy

I'm trying to build a reg exp for haproxy that will match the second URL and direct it to a different acl than the first: mysite.com/path/ mysite.com/path/something_random The issue is that my ...
0
votes
0answers
38 views

HAProxy not starting at boot

I`ve installed and configured HAProxy with keepalived in CentOS 7 properly, the load balancing is working properly except that HAProxy is not starting at boot, I must start it manually. If I run the ...
0
votes
0answers
34 views

HAProxy dropping same HTTP resoponse 200OK everytime

I would like to ask question and appreciate if someone can help me to find solution. I am using haproxy ver 1.4.15 [root@HAProxy tmp]# haproxy -v HA-Proxy version 1.5.14 2015/07/02 Copyright ...
0
votes
1answer
44 views

Rewrite URL to subdomain in HAProxy

I'm having trouble understanding how to combine a redirect with an URL rewrite in HAProxy. Specifically I have this URL https://www.example.com/en/blog that I need to rewrite to ...
0
votes
1answer
32 views

How to use haproxy to load backend1 ONLY if backend2 is dead?

After a lot of search, i can not find a very basic and simple way to use backend server 2 when ONLY IF backend 1 is dead. Here is my current configuration: frontend www bind *:80 reqadd ...
0
votes
1answer
329 views

How can I get haproxy to log to systemd/journald?

I have a current generation Linux system I'd like to use with haproxy. Journald will happily log stdout from .service, and mark the log as coming from that service, but haproxy doesn't seem to be able ...
1
vote
1answer
51 views

migrate ssh session from one Linux box to another as a failover

I have been looking for a solution that allows one to migrate an ssh session from one Linux box to another. I prefer an open source or free solution, but I can't even find a commercial solution ...
1
vote
0answers
16 views

HAProxy HTTP Response “Other”

The HAProxy documentation lists the possibility of returning non-conforming HTTP status codes: hrsp_other [.FBS]: http responses with other codes (protocol error) Are these simply error codes ...
0
votes
0answers
36 views

HAProxy Proxing non-real path

Using HAProxy I'm trying to proxy a site where the URL doesn't match the path of the proxied destination server. Right now I'm able to use reqrep to edit the path and at my browser I end up fetching ...
1
vote
1answer
303 views

Haproxy redirect based on path

Similar to HAProxy reqrep remove URI on backend request. The following concerns apply for us. We have applications which were running with different context roots off one domain. However not all ...
0
votes
0answers
124 views

Haproxy don't capture added header

I can add new header in haproxy with the "http response add-header" function and it's done successfully because i can see those added headers in my http packet when i use Wireshark. The problem is ...
0
votes
1answer
74 views

haproxy not delivering certificate chain

We're setting up haproxy 1.5.14 to do SSL termination for the upcoming release of our massively tenanted application. Hundreds of domain names are used with the app; most of the certs are for ...
1
vote
1answer
79 views

Haproxy ssl redirecting

I'm not sure if I understand how to haproxy works exactly. I have system which is composed of few servers with communication based on http. I want to use haproxy as load balancer and something like ...
2
votes
1answer
64 views

Rate limiting using haproxy per url per ip

Our servers are being hit by someone constantly. Its not DDOS. Just one ip hits one url more than 200 times a second. Currently I am blocking the user by ip tables. We are using HAproxy for load ...