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
64 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 either....
1
vote
0answers
24 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
53 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
1k 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
295 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
162 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
141 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
147 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 ...
2
votes
1answer
1k views

HAProxy has no server available

I am trying to setup a very simple HTTP load balancer with node.js backends in CentOS 7. The backends are all HTTP servers. If I set both the backend to listen on port 80, and HAProxy to listen on ...
0
votes
0answers
118 views

How to haproxy rewrite http header

I have 1 haproxy server hosting for website.com and 1 nginx server hosting for static.website.com . I want when haproxy receive http request for http://website.com/static/image.jpg it will rewrite: ...
0
votes
0answers
112 views

Appending URL subdomain as URL path in HAProxy

I want to convert following URL: http://subdomain.example.com/a/b/c To this: http://example.com/subdomain/a/b/c In HAProxy. Thanks a lot
0
votes
2answers
81 views

How to do basic auth with HAProxy while doing other ACL?

I am running HAProxy in front of apache servers and I want to implement basic authentication for some domains. The manual states that this should do the trick: userlist admins user myusername ...
0
votes
0answers
41 views

HaProxy configuration to atmosphere - WebSockets

I am using two Tomcat web sites in different servers with clustering. Both the server configured in HA-Proxy. I deployed my application in both the servers. In my application I'm using atmosphere (...
-3
votes
1answer
946 views

How to handle 1M websocket connections (Nginx/HAProxy/Amazon/Google) [duplicate]

What nginx or haproxy setup is suggested for target 100K concurrent websocket connections? What I think, a single nginx will not be able to take such traffic as well as concurrent connections. How ...
0
votes
0answers
191 views

HAProxy using multiple SSL sites

I have two http websites sales.webdos.org and accounts.webdos.org running in apache web server. These two websites are load balanced with haproxy and keepalived. These websites works fine with http ...
1
vote
0answers
192 views

Haproxy disable Secure Renegotiation

I want to disable secure renegotiation in HAproxy-1.5.2, but can not find anything about it on the official documentation: http://www.haproxy.org/download/1.5/doc/configuration.txt My SSL HAproxy ...
0
votes
1answer
258 views

tcp_tw_reuse and tcp_tw_recycle not working in specific environment

We are running HAProxy to direct mysql traffic from PHP to a set of mysql servers. However, due to an issue with the way the mysql-client sends TCP packets, we get a ton of connections in TIME_WAIT ...
1
vote
1answer
369 views

HAProxy not logging all requests

I've setup a HAProxy on Ubuntu 14.04 running a seperate backend server also on Ubuntu 14.04 and Apache2. When performing requests not all those requests are logged. Even when running HAProxy in debug ...
3
votes
1answer
276 views

Can I use HAProxy to load balance telnet connections?

We use HAProxy as load balancer for regular HTTP requests. I see no reference to telnet connections in the HAProxy configuration guide: HAProxy config guide. I was hoping to reuse HAProxy (or spin up ...
2
votes
1answer
122 views

Apache HTTPD's remoteip not working

I've configured remoteip and checked that it's actually loaded. The remoteip.conf is loaded as well. I checked the latter by introducing a wrongly formatted IP in the following (correct) config: ...
2
votes
3answers
4k views

HAProxy - how to append client ip in X-Client-IP and X-Forwarded-For headers?

I have a problem with HAProxy server. I want to forward in header a client IP. I almost done it, but there is interesting case and I can't figure it out. I need to write client IP in 2 places in ...
0
votes
2answers
173 views

Haproxy logging doesn't work. Does that have anything to do with csf?

Does Haproxy log every time a connection is made? I have followed instructions from other threads to set up logging via rsyslogd. Even though the files are created (haproxy.log,haproxy-info.log and ...
1
vote
0answers
230 views

Webdav through HAProxy

I am trying to connect to a WebDAV server through HAProxy. The goal is to direct all traffic through one port, 5443. My HAProxy server is bound to port 5443 with SSL. I have tried connecting to ...
0
votes
1answer
102 views

HAProxy reverse proxying with Docker not working

I have one server. On this server I have one haproxy container, 2x node containers. I am trying to split up the following. https://mydomain -> 1e node container (x.x.x.x:8080) https://mydomain:81 -...
0
votes
1answer
98 views

Docker run command, expose port private only

docker run -it -p 8080 myimage /bin/bash I would expect the code above to expose port 8080 private. However when I run: docker ps -a It shows: 0.0.0.0:32770->8080/tcp How does one set port ...
1
vote
0answers
73 views

how do persistent http connections (http-keep-alive) affect the Tq value?

From what I understand, the Tq time is the time between the end of the TCP client handshake and the time that the last HTTP header is read. The haxproxy 1.4 manual describes Tq time as: Tq: ...
0
votes
0answers
18 views

Does the Tq timer start before the SSL handshake, or after?

The haxproxy 1.4 manual describes Tq time as: Tq: total time to get the client request (HTTP mode only). It's the time elapsed between the moment the client connection was accepted and the ...
0
votes
0answers
44 views

How does waiting for other requests to be processed affect the Tq time?

From what I understand, the Tq time is the time between the end of the TCP client handshake (presumably when using HTTPS the timer starts at the end of the SSL handshake) and the time that the last ...
5
votes
2answers
3k views

How to configure HAProxy for multiple SSL-Certificates

I need to configure HAProxy with two different SSL-Certificates www.example.com api.example.com Now I learned from a post on serverfault ( Configure multiple SSL certificates in Haproxy ) how to ...
0
votes
1answer
215 views

How does read/write splitting work with MySQL replication?

I know how to setup a master->slave replication but I am a bit confused on how I would do read/write splitting between the two MySQL servers with a PHP application. When I have MySQL replication ...
0
votes
1answer
386 views

HAProxy stats page not working

global log 127.0.0.1 local0 notice maxconn 2048 tune.ssl.default-dh-param 2048 stats socket /run/haproxy/admin.sock mode 660 level admin stats timeout 30s user haproxy ...
0
votes
1answer
247 views

Haproxy balance source hash-type consistent only routing to single backend

Folks, I have a vm setup with nginx and haproxy to act as a load balancer for a webapp that needs to maintain session stickyness to a single backend once a client has made a connection. The nginx ...
-2
votes
2answers
91 views

Why haproxy dont work?

I have created 2 instances in Amazon.com with ubuntu and install HAProxy on it. HAProxy in 1st server works. Haproxy in 2nd server doesn' work since I tried to set up iptables. I try to execute curl ...
1
vote
1answer
135 views

How to share local IP within a cluster if server is bound to one IP?

I have a cluster with 3 nodes running in VMs on test setup. Now I want to take it to production and rented 3 dedicated root servers at Hetzner Online connected by a switch. As I found out, they do ...
1
vote
0answers
49 views

varnish ignore haproxy session affinity cookie

I have HAproxy behind varnish and I need use session affinity based on cookies. In default configuration, varnish doesn't cache content when the cookie is present. Anyone knows, how to tell varnish ...
0
votes
1answer
128 views

Haproxy userlist password from an environment variable

Is there a way to specify a password for the userlist from an environment variable. All of the following seem not to work: userlist UsersFor_Frontend user admin insecure-password ${ENV_PASSWORD} ...
0
votes
0answers
32 views

Centos 6.3 haproxy ports not opening (tcp)

Trying to create a tcp load balancer for my game server and i run this script >> Running on centos 6.3. The port (1337) isn't opening. global daemon log /dev/log local4 maxconn 400000 ulimit-n 810000 ...
0
votes
1answer
49 views

how many listen directives (mode tcp) i can have in haproxy?

how many listen directives is too many for haproxy configuration on a single node? What are the most important resources to monitor? is 50 times the listen qwerty213 bind *:9124 mode tcp ...
2
votes
1answer
886 views

log format ignored for frontend 'http-in' since it has no log address

I'm using the following haproxy.cfg from the couchdb project: global maxconn 512 spread-checks 5 defaults mode http log global monitor-uri /...
0
votes
0answers
86 views

Migration from nginx to haproxy

I am trying to migrate existing app written in Go from nginx to HA-Proxy version 1.5.14 2015/07/02 on Ubuntu 12.04. nginx/haproxy runs behind F5 load balancer. My config: https://gist.github.com/...
0
votes
2answers
86 views

Creating a redundant environment with ONLY 2 servers (so without a third server that handles the load-balancing) [duplicate]

First of all, i'm sorry if this question has been answered before, but i've been searching for a while now and couldn't seem to find (or understand) an answer. So, i have two physical servers with ...
0
votes
1answer
1k views

How do I capture unique id in haproxy logs?

I'm trying to capture the unique id for each request in my logs. I thought I could use capture request header X-Unique-ID len 16 on the header but its not working. Any suggestions? global log /dev/...
1
vote
0answers
61 views

Could HAProxy disable the Apache Instance on the same node it is running?

I have a setup with three VMs that are running on a core i74xx. The machines form a LAMP cluster with HAProxy doing the loadbalancing. After running multiple load tests I found out, that throughput ...
0
votes
0answers
105 views

Problems with the sessions and HAProxy in OpenShift

I have written an application using Kraken and deploy in OpenShift with the option of auto-scaling (use HAProxy) but this has led me two problems: 1) HAProxy constantly sends requests to the ...
-1
votes
1answer
352 views

HAProxy Rewrite - Modify Query String

I need to configure our HAProxy 1.5 server to rewrite a specific query string value to a new value, in a long URL. In the example below, dc needs to be changed from 12345 to 54321. I was planning to ...
-1
votes
1answer
2k views

HAProxy “option redispatch” not working when I put into maintenance mode

I'm having an issue with HAProxy not redispatching connections to servers. When I put a server into maintenance mode none of the active connections are being disconnected/transferred to other active ...
1
vote
2answers
269 views

HAProxy - Health check of multiple microservices for one server

We have 2 web servers that we want to load balance. Each server has a main web application that is hit by the public. Each server also has number of dependent microservices that are used internally by ...
0
votes
2answers
1k views

Why use stick tables in HAProxy?

What is the purpose of HAProxy stick tables? What are the cases using them and why are they important? I'm looking for some one to explain why (not how), the docs aren't helpful in this case. If ...
0
votes
2answers
230 views

HAProxy mysql configuration

I tried few times, but I cannot figure it out why my mariadb load balancer with haproxy is not working. I have : 1 HAProxy (CentOS) : 10.181.102.249 1 Master (CentOS) : 10.183.241.150 2 Slaves (...
0
votes
0answers
64 views

Configure haproxy to keep connection with client if one of backends fails

I am using haproxy in http mode for http backend failover. I have 2 backends: listen xxx bind 192.168.0.1:8545 mode http balance source option httpchk POST / HTTP/1.1\r\nHost:\ 127.0.0.1:8545\r\...