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

2
votes
0answers
131 views

how to use a request dependent acl as a condition in a stick match or stick response-store

In neo4j there's the transactional cypher endpoint. This allows the client to spawn a database transaction over multiple REST requests. The first request opens a new transaction and gets back the URL ...
0
votes
1answer
121 views

MySQL with HAProxy on same server - How to connect from VIP

I am running 2 dedicated servers on which each has HAProxy keepalived running, MySQL in master/master and Apache. Load Balancing for Apache already works, but I can not get MySQL LB running. HAProxy ...
0
votes
1answer
147 views

Keepalived failover not working - how to configure master / failover

I have following two server setup running: node1: keepadlived master -> HAProxy -> Apache node2: keepadlived failover -> HAProxy -> Apache The system works perfectly until I shut down keepalived ...
0
votes
1answer
65 views

HA Proxy should continue with backup till all sessions are alive when main server up

I have two servers say MainServer and BackupServer. From this MainServer is main server and BackupServer is my backup sever which I have configured with HA Proxy. Here is my HA configuration server ...
1
vote
1answer
763 views

HaProxy - 502 Bad Gateway : HTTP spoken on HTTPS port

I'll try to explain my issue. I'm working on HaProxy 1.5.8 / apache 2.2, and I try to do some SSL configuration, but I fail, and fail, and fail. Let's see some logs: Haproxy Logs Aug 13 17:00:28 ...
0
votes
1answer
95 views

Why hostname got truncated from the HAProxy syslog messages

This is a slice from my haproxy logging, where I target the sysloga and remotely log to papertrail, using the log-send-hostname option to pront the hostname in the log message instead of the ...
0
votes
0answers
85 views

CRM Dynamics with HAProxy

I have a HA Proxy sitting in front of a CRM Dynamics server. I am trying to send traffic through to the CRM Server by hitting the HA Proxy server. The config setting is as follows: ...
1
vote
2answers
689 views

Zabbix_server.log says [2006] MySQL server has gone away

Environment CentOS 6.6, Zabbix 2.4 DB MySQL Galera cluster with 3 nodes mysql-wsrep-server-5.6-5.6.23-25.10.el6.x86_64 galera-3-25.3.10-2.el6.x86_64 Errors [Z3005] query failed: [2006] MySQL ...
0
votes
1answer
290 views

HAProxy - backend with subdirectory

I have simple haproxy configuration: two servers, one is frontend, two is backend with jboss application. Here is config: defaults mode http log global ...
0
votes
0answers
491 views

Transparent Proxy Issues w/ HAProxy Centos 7

Having issues following steps to transparent proxy outlined here: Howto transparent proxying and binding with HAProxy and ALOHA Load-Balancer | HAProxy Technologies – Aloha Load Balancer Believe to ...
0
votes
1answer
67 views

Load Balance Virtual Host and Amazon/DO Server using HAProxy

I am stuck with an issue and im hoping someone can point me in the right direction. I have a server that hosts multiple sites using Apache Virtual hosts (shared IP's). A few months ago my server ...
2
votes
2answers
1k views

Optimizing HAProxy SSL Termination (with Nginx backend on Ubuntu)

How can I optimize HAProxy with SSL Termination to Nginx backends on Ubuntu? The setup works fine and routes properly. However, when I perform SSL Termination with HAProxy, theres a huge performance ...
0
votes
1answer
63 views

Configure HA Proxy with two application servers to handle fail-over

I have configured two application servers with HA Proxy to recover from fail-over situation. So I want to configure HA in such a way that if my 1st application server goes down, then only next ...
0
votes
0answers
25 views

Haproxy don't work with second IP and Grsecurity

I have a VM (on XenServer) with Haproxy 1.5 and I try to make it work with a linux kernel 3.14.48 with the Grsecurity patch, compiled myself. The VM have 3 network interfaces : eth0 for the LAN ...
0
votes
1answer
2k views

HAProxy to redirect http to https for multiple domain names without SSL Termination

I am using HAProxy to redirect traffic to different web servers in local network. Without SSL enabled, I can route based on hostname like this (in frontend section): acl is_local hdr_end(host) -i ...
0
votes
0answers
223 views

HAProxy TProxy support CentOS 7

PER: Howto Transparent proxying and binding with HAProxy and ALOHA load-balancer Says following kernel flags set: CONFIG_NETFILTER_TPROXY CONFIG_NETFILTER_XT_TARGET_TPROXY in ...
2
votes
1answer
793 views

HA Proxy and Websockets

I'm setting up my first HAProxy reverse proxy server. It's going to be a proxy for an HTML5 app running on tomcat from a different server. I was able to get it to proxy out via HTTP, redirect all ...
0
votes
1answer
117 views

HAProxy HTTPS Redirect to different domain

Currently I have a HAProxy configuration which redirects all HTTP traffic to HTTPS. frontend http-in bind *:80 redirect scheme https code 301 I then have various HTTPS domains configured, ...
1
vote
1answer
48 views

HAProxy - Using ACL in Frontend with SSL-Termination

I'm using HAProxy in front of nginx. HAProxy terminates the SSL-Connection and passes only static requests to nginx (png, jpg, etc.). I don't know why, but there are some requests forwarded to nginx ...
0
votes
0answers
113 views

Haproxy Layer 4 balancing with TLS

We have ssl3 turned off in favor of TLS. Most the tutorials on https for layer4 support with haproxy, ie ssl passthrough, uses check-ssl or ssl-hello-chk. In our setup this will fail because we have ...
0
votes
1answer
56 views

Block IPs for some time on HAProxy

I would like to blacklist IPs that are spamming a particular URL, but only for a determined amount of time. let's say 10 minutes. I'm thinking of creating a stick-table, and store the src IP and ...
0
votes
1answer
292 views

HA-Proxy 301 re-direct: https to https://www

I am trying to have HA-Proxy 301 redirect an https domain. I need: https://example.com to redirect to https://www.example.com This is what I was trying to get it to work: # corp - example.com ...
2
votes
2answers
408 views

haproxy: how to prepare a server maintenance without kicking app sessions?

The issue I'm using haproxy to load balance web servers. I use session persistence with additional cookies as some applications use session files and these are not synchronized between servers. I ...
0
votes
1answer
184 views

HAProxy 1.5.4 Performance Tuning

I currently have HAProxy 1.5.4 setup using keepalived for HA on centos 7 using IPtables to create a transparent load balancer to load balance a number of cisco WSA proxy servers for internet filtering ...
2
votes
3answers
255 views

SSL binding with no hostname, and centralized certificate store?

We have a web app that serves a large number of websites from a single IIS website. The IIS website simply has a catch-all binding on port 80. Up till now, for the SSL bindings, we have added a new IP ...
4
votes
3answers
680 views

Is it possible to use multiple load balancers to redirect traffic to my application servers?

I'm new to load balancing and I'm wondering if it's possible to use multiple load balancers to redirect traffic to my application servers. I don't really understand how this can be done. Shouldn't a ...
1
vote
0answers
154 views

haproxy how to acl to pass only list of ip's and domains need to be redirected to backends

I've one routed IP and haproxy is sitting there, haproxy has also lan ip to contact backends. I have few backends - each holding some nginx'es, sometimes few domains services on each one. I've come to ...
2
votes
1answer
724 views

is there a standard for chaining x-forwarded-for headers?

IETF RFC 2616 Section 4.2 allows a request to contain multiple headers with the same field-name as long as chronological order of insertion is preserved and their values can be converted into single ...
1
vote
1answer
563 views

Disable Haproxy Logging messages

I am having a problem with haproxy. Every time I turn off virtuoso, haproxy shows the following error message: Message from syslogd@master0 at Jul 9 14:39:18 ... haproxy[4403]: backend ...
4
votes
2answers
607 views

Haproxy Resolvers Section + Amazon ELB

I'm currently using Haproxy-1.6-dev2 in front of an amazon ELB, and I'm running into DNS resolution issues. I'm working with the dev version of haproxy because of the new resolvers feature, but ...
0
votes
1answer
173 views

Limit maximum requests / second for a specific path on HAProxy

I'm trying to achieve this scenario : On a specific path only, I receive a steady 9 requests/sec on the frontend. Everything is fine, use the regular Backend. I now receive 11 req/s, I want to reject ...
1
vote
0answers
144 views

HAProxy redirecting

I'm trying to get HAProxy to redirect to the right URI's in case the requested URI is non-www or non-https. The problem I'm encoutering is that it redirects as soon as it hits a line, resulting in ...
-1
votes
1answer
347 views

HAproxy- Could not open configuration file: Permission denied

I am having some test with HAproxy as Load Balancer. I installed it and configured too, even the log with rsyslog. I checked the configuration with haproxy -c -f /etc/haproxy/haproxy.cnf and with ...
0
votes
0answers
317 views

nginx behind reverse proxy 504 Gateway Time-out on form submit

I have a problem with nginx. When I use the site directly everything works fine but as soon as I setup a reverse proxy (doesn't matter if its another nginx or haproxy) I get 504 Gateway Time-out when ...
0
votes
1answer
256 views

RTMP load-balancing via HAProxy

I've got a little problem to solve: I need to find a way to load balance, bandwidth-wise, the incoming RTMP streams on my servers. I have 2 RTMP servers (nginx-rtmp), let's call them S1 and S2. The ...
0
votes
0answers
37 views

HAProxy stats/limits by domain

I'm looking into setting up HAProxy to manage a small cluster for a few domains. I'd like to be able to monitor the stats of each domain/website independently and set limits based on the website, in ...
1
vote
0answers
24 views

Summary Error Configuring HAProxy via pfSense

I configured a frontend record that is refering to a backend server pool with one record. The referred HAProxy Backend server pool contains a single record with the Max con value set to 2000. In the ...
0
votes
0answers
116 views

Haproxy and rewrite rules issue?

I have HAproxy listening on port 80 to send requests to a node server (port:3000) or php server (4000). The following rewrite rules should add a trailing slash to any url that is pointing to an ...
0
votes
1answer
167 views

haproxy-varnish can't reach 6k requests

Issue I can't reach 6k requests/seconds. I get a lot of timeouts. My response time goes as high as 26 seconds. Intro I am setting up a server that will host a 100MB static-website. The thing is ...
0
votes
0answers
183 views

Haproxy service fails in centos 7 with certificate in a mounted directory

I am having an issue getting haproxy to load my certificate from a mounted directory when it is started with systemd. I can start haproxy directly as root without issue. Everything works fine if the ...
2
votes
2answers
292 views

Configure HA Proxy between Apache and Tomcat servers

Want to configure HA Proxy with my existing structure. Currently I have Apache->Tomcat server. This I want to change to Apache->HA Proxy->Tomcat Server. HA I have configured for Http request. But my ...
1
vote
1answer
538 views

HAProxy redirect traffic to NGINX getting error “The plain HTTP request was sent to HTTPS port”

What we are trying to is to have HAProxy to listen for all incoming traffic from port 443 (HTTPS & WSS) Below is our HAProxy config: frontend wwws bind 0.0.0.0:443 ssl crt ...
1
vote
1answer
79 views

How to use two ssh daemons on one server using nginx or haproxy

First of all, I am new to haproxy and nginx. I would like to know if it is possible to use nginx or haproxy to receive all ssh requests, and forward them to two different ssh deamons based on the ...
0
votes
1answer
162 views

HAProxy parsing errors

i have 3 servers --> haproxy - server1(uk) - server2(ru) i followed this tutorial and created ip for ru.subnets now in my /etc/haproxy i have these files: haproxy.conf ru.subnets ...
2
votes
1answer
333 views

HAproxy mysql failover

I try to set up a HA cluster with Percona xtraDB Cluster for MySQL replication and HAproxy for load balancing. HAproxy works really good with apache, when apache crash or if it's not responding, ...
0
votes
1answer
194 views

Is it possible to connect to MS SQL server via HAProxy?

I need to be able to connect to MS SQL server hosted on Amazon (RDS, single AZ) via HAProxy. I tried the following configuration (bottom) but MS SQL returned me (although I used valid login and ...
1
vote
2answers
537 views

How do you Mask URLs in HAProxy?

Is there any way to do URL masking in HAProxy? I'd like to have a URL directing to my load balancer, i.e. www.example.com, redirect to another URL I have for another application. However, I'd like the ...
0
votes
1answer
163 views

NAT routing based on DNS name (reverse TCP proxy?)

Introduction I have one router, running pfSense (can be anything since it's a virtual machine on VMware, so if the solution requires anything else, that's fine by me) and behind it I have multiple ...
0
votes
1answer
176 views

Snort IDS on HAproxy with encrypted traffic

Using HAproxy, can I direct traffic to a backend server from all the other backend servers in a pool? From a networking standpoint, it would be comparable to mirroring all ports on a switch to one ...
0
votes
1answer
40 views

HAProxy: API on the same subdomain as frontend

I've got such a configuration in my haproxy.cfg file: acl is_api url_beg -i /api acl is_frontend hdr(host) -i subdomain.mydomain.com use_backend api if is_api use_backend ...