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
10 views

Best HAProxy resouces? [on hold]

I'm trying to find a haproxy resource that explains why rather then what/how. The documentation is pretty for haproxy but it doesn't have a best practices or a why this important. For example, why ...
0
votes
1answer
9 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
11 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 ...
1
vote
1answer
14 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
14 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
14 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
27 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
31 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
41 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 ...
1
vote
2answers
48 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
34 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
41 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 ...
2
votes
3answers
348 views

Using Multiple Load Balancers

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
40 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 ...
1
vote
1answer
54 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
21 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 ...
3
votes
2answers
101 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
62 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 ...
0
votes
0answers
6 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
56 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
62 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
45 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
16 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
8 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
25 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
85 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
59 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
42 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
76 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
49 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
49 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
74 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
58 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
59 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
65 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
53 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
11 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 ...
1
vote
1answer
51 views

HA proxy not recovering from “no route to host”

We are using HA proxy in an Amazon EC2 instance to route certain requests to to two different internal load balancers which are EC2 ELBs (Elastic Load Balancers). Here is the HA proxy configuration: ...
0
votes
0answers
27 views

How to turn off and on heartbeat service when haproxy is turned off and on?

I'd like the heartbeat service to turn off before haproxy is stopped and to turn on before it starts on a Ubuntu 14.04 Server. What is the best way to accomplish this? I'm sure one of these days I'm ...
0
votes
1answer
89 views

Haproxy balancing - retry with another server if first timed out

We are running multiple backend servers with fastcgi protocol and we balance between them using HAproxy. Here is a sample of config: listen Balancer 192.168.0.1:2000 mode tcp option tcplog ...
0
votes
0answers
23 views

rsyslog tcp packets containing multiple log messages

I have rsyslog receiving logs over udp and then relaying them over tcp to a load balance (nginx) which passes them along to SIEM collectors. The setup looks like this: network devices/appliances ...
0
votes
1answer
75 views

KeepAliveD + HaProxy - Only the master should run an active HaProxy service

it is possible to configure keepalived so that only the master server are running an active service from haproxy? Currently LB1 and LB2 (both with keepalived and haproxy) works great. But sometimes ...
0
votes
1answer
38 views

possible for all outbound smtp to run through proxy?

Is it possible to setup my centos 6.5 so all outgoing port 25 is run through a proxy. I have incoming smtp/port 25 coming to my mail server through HAproxy but i would like the outgoing to do the same ...
0
votes
0answers
12 views

Exclude HAproxy check from postfix log [duplicate]

I use HA Proxy to loadbalanced SMTP connection. Does it possible to exclude HAproxy check from postfix log ? This is a example of my mail.log : Jun 3 09:30:24 mail2 postfix/smtpd[6277]: connect ...
0
votes
1answer
28 views

Is it possible to use HAproxy in this scenario?

I have an Apache based server running a number of sites along with the Virtualmin admin tool. I'd like to run HAproxy to direct one domain to a specific port (a Docker container) and everything else ...
0
votes
0answers
25 views

Error when running hadiscover with etcd to configure haproxy for docker service discovery

I am trying to enable dynamic service discovery of docker containers load balanced with HAproxy for our development environment where we build Jenkins jobs which create containers for every ...
1
vote
0answers
96 views

HAProxy stick-table

in HAProxy I'm trying to track connections to a certain page with a random key value. The configuration I'm using is: stick-table type string size 200 store gpc0 acl test_page url_reg -i test.php ...
0
votes
0answers
114 views

Nginx with proxy_protocol is not accpting requests from haproxy in TCP mode with send-proxy

I have haproxy and nginx. I want make this setup accept HTTPS connections and I want HTTPS request being decrypted on nignx, not haproxy. In haproxy I've created frontend and backend for HTTPS ...
2
votes
1answer
79 views

HAProxy/Varnish: redirecting a percentage of traffic

I'm trying to measure separate statistics for two different versions of a web page. So I need to redirect a certain percentage of my web traffic to a different page than the one requested (i.e. 20% of ...
0
votes
1answer
107 views

Using HaProxy environmental variables in haproxy.cfg not working

Trying to figure out why environmental variables in haproxy.cfg aren't working in HA-Proxy version 1.5.2 on the command line, using Printenv I get a list of environmental variables like ...