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
3 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
0answers
10 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
6 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
3 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
9 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 ...
-1
votes
0answers
28 views

Setup a Google Cloud Engine Internal HTTP loadbalancer [on hold]

Does google cloud supports a HTTP internal load balances? (like aws does) if not i was thinking to make a fault tolerant HAproxy cluster, but there is still a drawback with the floating IP address, ...
0
votes
1answer
57 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
34 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
13 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
29 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
37 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
26 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
41 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
28 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
47 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
43 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
20 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 ...
-1
votes
0answers
28 views

MySQL with Haproxy ssl termination

I have a MySQL server behind a Haproxy server. I want to use Haproxy as a SSL termination proxy. The SSL is correctly configured on Haproxy and the connection is OK. If I test with openssl s_client ...
0
votes
1answer
8 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
26 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
16 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
39 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
13 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
55 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
27 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
22 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
14 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
44 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
57 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
56 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
54 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 ...
0
votes
1answer
49 views

Configuring iptables for Haproxy

Ubuntu machine running haproxy with 2 network cards, 1 connected to WAN (called wan0) and another connected to LAN (called lan0). All chains set to DROP traffic. # Masquerade traffic from LAN to WAN ...
1
vote
0answers
30 views

Key management for HAProxy instances in OpsWorks

I'm trying to use client certificate verification in an OpsWorks HAProxy instance. The question I'm running into, and it's probably a noob issue, is how am I supposed to deploy my ssl private key to ...
1
vote
0answers
64 views

Use haproxy to route openvpn trafic to mutliple openvpn instances [closed]

I'd like to use multiple OpenVPN docker instances on the same IP port, so I'm looking for a way to route the ssl vpn trafic, does something like haproxy can do the job? Maybe by sniffing the ssl ...
0
votes
1answer
70 views

How to configure HAProxy to pass though unencoded URL to Jenkins backend?

I have HAProxy configured to terminate SSL connections for a Jenkins CI server, proxying to the Jenkins CI server backend over plain ol' HTTP. I can successfully perform [thus far] all of the ...
0
votes
1answer
30 views

How to rewrite errors returned by an underlying server at HAProxy?

I have a JBoss cluster under Apache HTTP servers, which is in turn under the HAProxy load-balancer. Whenever a JBoss application server goes down, Apache shows the 503 error screen. Is there a way I ...
1
vote
0answers
55 views

HAProxy ipv6 to ipv4 issue

I have setup a HaProxy node ver 1.5.3 on Ubuntu 14.04. The Ubuntu server has 1 nic. The nic has an IPv6 address and an ipv4 address. The IPv6 listens on port 80 for incoming internetconnections. The ...
0
votes
0answers
13 views

Use HAproxy's “redir” without appending URI

In case of all backends failure, I want to redirect the client's requests to a maintenance page. IE : http://mycrashedwebsite.com/folder/page.html should redirect to ...
0
votes
1answer
33 views

haproxy: how to intercept links that point directly to the backend servers

I have set up haproxy and it works fine, I can access web pages that sit on servers on the backend. The setup is as follow: There's a single frontend haproxy server that points to different backend ...
0
votes
1answer
89 views

Moving a web application to use HAProxy, Varnish, and nginx

I currently have 4 web application servers (running on application) on Rackspace that sit behind a Load Balancer (on Rackspace). In front of the Load Balancer. The application itself makes moderate ...
3
votes
1answer
60 views

HAProxy balance algorithms for Apache and MySQL

just recently I got responsible for an existing project that uses Apache webservers and MySQL databases. The webserver are behind a HAProxy loadbalancer and the application connects to the MySQL ...
0
votes
1answer
29 views

HAProxy log outgoing requests

Currently, my HAProxy logs have information about the incoming requests: HTTP version, method, host, path, and headers. I am trying to debug my HAProxy config, and need to know what the resulting ...
0
votes
0answers
36 views

Issue with multiple sites on same vps with haproxy

Setup I have a VPS which I am using docker on. I currently have 3 containers. 1 for haproxy and the other 2 containers contain their individual sites (running a nodejs http server on port 8080). I ...
0
votes
1answer
127 views

haproxy displaying incorrect version / 503 service unavailable

I am using docker with a few containers. One of my containers has haproxy and I wish to reverse proxy a domain to one of the other containers which is holding a web server. There are a few weird ...
0
votes
1answer
123 views

haproxy.cfg 1.5.12 log file error

This is the top three lines of my haproxy.cfg: global log /dev/log local0 log /dev/log local1 notice ... I get the error in the terminal: root@b323d0a11c98:/etc# service haproxy ...
1
vote
0answers
39 views

Redis Sentinel false failovers

I'm having problems with Redis. I have 3 servers. Each server have 10 Redises working on different port. Also, each server has one Sentinel instance. Also, there are 5 application servers. Each ...
0
votes
2answers
127 views

HAProxy max session limit

I have an Amazon OpsWorks stack running HAProxy (balance = source) and several node.js instances running socket.io. It seems HAProxy determines the max session limit for a given instance based on the ...
0
votes
1answer
26 views

Haproxy dynamically promote backup server to master

Let's say if I have two mysql databases, db1 and db2. Is that possible to configure haproxy to work like that: In the beginning: db1 work as master and db2 as backup. The haproxy will promote db2 ...
0
votes
0answers
55 views

haproxy get ssl interrupt error, how haproxy tell server to close ssl or tcp?

I use haproxy 1.5 and a windows server build site. my site work under the https protocol, so for haproxy I use tcp mode since I think the ssl can not work on http mode. my problem is the ssl ...