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
92 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
43 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
133 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
124 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
63 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
71 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
122 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
88 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
21 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
27 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
130 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
1k 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
147 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
36 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
165 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
149 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
913 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
1answer
997 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
90 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 ...
2
votes
1answer
662 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
82 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
51 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
78 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
50 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
836 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
60 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
23 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
51 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
277 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
138 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
126 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
123 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
103 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
106 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
69 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
38 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 ...
-4
votes
1answer
825 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
152 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
180 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
239 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
309 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
259 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
108 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
3k 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
157 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
220 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
90 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 ...