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
votes
0answers
7 views

How to configure HAProy to send traffic to remote IP address [on hold]

Hie all, I am new to HAProxy and i need help. My senario is if i have a load balancer with a public IP in different datacenter and 2 backend servers with their own IP address in different ...
0
votes
0answers
12 views

HAProxy errors configuration

I have problems with my configuration HaProxy : frontend http-in bind 0.0.0.0:80 mode http #option httplog acl site1 hdr(host) -i http://XX.XX.XX.12/games/ acl site2 hdr(host) -i ...
0
votes
0answers
18 views

HAProxy, Varnish and Multiple websites with SSL

I can't seem to find any documentation on setting this kind of configuration up with Apache. I have 1 load balancer and 2 slaves running MySQL replication and unison syncing both machines and website ...
0
votes
0answers
14 views

How To Log TLS Mutual Authentication Details?

Is there a way to log the low-level details of the TLS mutual authentication flow (most importantly - the challenge that is sent to the client and the signed response). Solution for any tool is ...
0
votes
0answers
34 views

Haproxy Nginx : How not to forward the local port?

I have haproxy which listening on ports 80 and 443 and behind Nginx listening locally on ports 8000, 8001, 8002 etc... By default, all works fine but when an application web made a redirect 301, it ...
0
votes
0answers
34 views

Can NGINX inspect the TLS request to look for SNI like HAProxy (etc) does?

It seems that, when configuring HAProxy for hostname routing on HTTPS connections, it is crucial to include a tcp-request inspect-delay directive to "give HAProxy a chance to look into the ...
2
votes
1answer
58 views

Does NGINX support SNI or does it not?

EDIT New question: Can NGINX inspect the TLS request to look for SNI like HAProxy (etc) does? According to what I've read around (and I've been told), NGINX should not support SNI and I should go for ...
0
votes
1answer
45 views

Unable to get StartSSL trust chain to work

I received a free SSL certificate from StartSSL which I installed on my server. It works fine on desktop browsers and such but as soon as I open the website on my phone it says ...
0
votes
1answer
28 views

Create persistent cookie in HAProxy

I am using HAProxy for A/B testing and here is the snippet of my HAProxy configuration listen http 127.0.0.1:8080 maxconn 18000 use_backend a-version-backend if { req.cook(SITEID) -m beg ...
0
votes
1answer
20 views

Haproxy set backend server via query string

I am using sticky sessions for stateful requests to our backend servers. Haproxy sets the cookie and the setup works well. I now want the option to set the required backend server via a query string ...
0
votes
0answers
58 views

How to use Docker with HAProxy+Keepalived?

I want to practise in creation of high-available web-application using multiple Docker containers on one machine. I launch several web-servers within Docker containers. Say, three servers rest1, ...
0
votes
1answer
37 views

understanding HAProxy Frontend and Backend current session stats

I have configured HAProxy with a single Frontend and Backend, from the stats page I see the following stats: system limits: memmax = unlimited; ulimit-n = 20013 maxsocs = 20013; maxconn = 10000; ...
2
votes
0answers
36 views

Haproxy and nginx rtmp

i am trying to use haproxy in front of rtmp nginx server it does connect but it does not play the video i have 2 servers 1 server is where rtmp nginx installed and second server where haproxy ...
0
votes
0answers
44 views

HAProxy timeouts after 1-2 minutes of load

I am switching our web load balance from Nginx to HAProxy. Currently our setup is working fine in nginx but we want to be more redundant with service checking. Our backend is Golang app. To keep ...
0
votes
0answers
36 views

Can haproxy perform ssl termination for forwarding to (squid) proxy servers?

I understand that haproxy can perform ssl termination for load balancing web servers, but is it possible to perform ssl termination when load balancing squid proxy servers? My scenario is that I have ...
0
votes
0answers
16 views

Haproxy “nbproc 2” high CPU

I had a 95% CPU usage with a single haproxy process, so I switched to nbproc 2. I have a two frontends and two backends; I pinned 1 frontend and 1 backend to process 1, and pinned the remaining two ...
0
votes
0answers
11 views

HAProxy path /splunk to splunk (/en-US/account/login?return_to=%2Fen-US%2F)

I'd like to forward requests from server/splunk to a running splunk application at server:8000. Without haproxy, if I visit splunk directly on port 8000 I get the following rewritten destination: ...
0
votes
1answer
68 views

Haproxy, Nginx Pretty Url not working

Hi I'm having trouble setting up pretty urls from nginx behind Haproxy. Haproxy.cfg global log /dev/log local0 log /dev/log local1 notice chroot /var/lib/haproxy stats socket ...
0
votes
0answers
18 views

HAProxy ACL with map 'src_http_req_rate' is neither a number nor a supported operator

I am using a map for storing the maximum request rate an IP can do in HAProxy. For example: ips.map #ip count 172.17.0.1 5 In HAProxy I want to limit the average number of requests to the ...
0
votes
0answers
31 views

HAProxy with multiple squid backend proxies

I have HAProxy with a bunch of squid proxies in the backend fqdn:port. Using the method here: Authenticated proxies on HAProxy load balancer I can send authentication for the proxies but I can only ...
0
votes
0answers
15 views

HAproxy, Keepalived with Cisco Policy Based Routing

I'm currently using using haproxy on 2 servers to load balance a number of web content and proxy servers for users, the 2 haproxy servers use keepalived to provide high availability for the 2 haproxy ...
1
vote
1answer
49 views

Haproxy resolvers not updating dns on failed health check

Using haproxy 1.6.1 (magnificent software!) with the (partial) conf file below. The problem occurs when a backend server is shut down by AWS (spot instance) and replaced. After the new instance is ...
1
vote
0answers
59 views

AWS ELB with SSL backend adds proxy protocol inside SSL stream

Note, this has been also posted in http://thread.gmane.org/gmane.comp.web.haproxy/27737 we are trying to configure this architecture: ELB terminating SSL, using preconfigured certificates. ...
1
vote
2answers
30 views

I erased haproxy.log with old content but this file hasn't appeared again

I have a load balancer with HAProxy in Ubuntu 14.04. I did all configurations for turn on log and it works well. However, I erased haproxy.log file and that hasn't appeared again. Can someone help me? ...
0
votes
0answers
46 views

Haproxy routing one Frontend to multiple backend with subdir [closed]

im trying to setting up my NLB Haproxy service to balance multiple Application hosted on different subdir of the same domain. I need backend(s) with subdir serving one frontend... here my full ...
0
votes
1answer
23 views

Use haproxy to redirect *.domain1.com/* to *.domain2.com/*

I am struggling with some HAproxy rules for a while with no luck unfortunately. Let's say I have domain1.com and domain2.com. I want to redirect everything from domain1.com to domain2.com, including ...
0
votes
1answer
57 views

Is it possible to do direct server return DSR load balancing using virtual servers in the cloud?

Is it possible to do this kind of load balancing in the cloud say for example in Digital Ocean if all of my droplets are from the same data center? Or do I need some sort of physical device to do this ...
1
vote
1answer
26 views

How can I TCP (layer 4) load balance with haproxy and still do roundrobin or leastconn balancing?

I am trying to load balance with haproxy on VirtualBox just to see that things work as they should before I go on to set it up on Digital Ocean. I am able to decide how to balance requests when I ...
2
votes
1answer
232 views

Using Lets Encrypt SSL for multiple Apache servers with distributed traffic

I'm having some issues setting up Let's Encrypt for a couple websites that are setup on two different servers, and have the traffic distributed to them via HAProxy. The servers have a number ...
0
votes
0answers
34 views

Adding CSRF token in to Cookies of Post request in Haproxy

My post request to UAA is missing CSRF value i.e. X-Uaa-Csrf=2QytIy. This is required for login in to cloud foundry UAA. This is problem is because of internet domain name /private domain name mapping ...
0
votes
0answers
31 views

Redis & HAProxy - updated configuration settings?

Have gotten 2 Redis instances installed, with one being a master. That is working remarkably well and with no headaches. I'm now trying to get my HAProxy/keepalived nodes to handle some sort of ...
0
votes
1answer
37 views

HAProxy cannot bind socket on nodejs webserver

i'm trying to use HAProxy to redirect on different nodejs webserver working on three different port. What i want is that when i try to open /node1 HAProxy redirect me to that web server. This is ...
0
votes
0answers
34 views

TCP Balancer active/standby active/passive

I have two Servers, Server A,ServerB. running as TCP socket server. I want to a active/standby or /active/passive failover. that means: 1:Server A and Server B Running, route ALL connection to ...
1
vote
1answer
64 views

HAProxy dynamic server address based off of header value

Hello I'm attempting to route traffic back to a users machine in order to run a site locally but picking up the headers/cookies/routing logic for other origins that HAProxy supplies. Thus far though I ...
2
votes
1answer
24 views

How to drop varnishncsa log if req.url matches

I've got a few load balancers that all perform health checks on a number of varnish instances. The health check on the varnish side consists of matching the request method and URL to return a 200 ...
1
vote
1answer
21 views

Making HAProxy Pass a Host Name in HTTPCHECK

I am trying to perform HTTP Checks in HAProxy with a specific host name. Here is a snippet from my backend configuration: option httpchk HEAD / HTTP/1.1\r\nHost: example.com http-check expect ...
2
votes
0answers
23 views

HAProxy frontend backend continuously starting and stopping

I am using an HAProxy 1.6.4 to load balance my traffic into different servers. As in now my haproxy runs inside a docker container. In my configuration i have different frontends and backends. As in ...
0
votes
1answer
19 views

How to put a HAProxy node to maintenance via configuration file?

Is there a way to configure HAProxy to add a node to the configuration but keep this particular node in maintenance? Just like with the web interface? Reason behind is, that I have the same setup as ...
1
vote
1answer
34 views

apache LimitRequestBody equivalent for haproxy

recently we migrate our http load balancers from apache to haproxy (http mode) for security reasons we use LimitRequestBody in apache configurations to control requests size is there any equivalent ...
0
votes
0answers
27 views

Best (light-weight) web-proxying software to use for my particular setup?

(Sorry for the dashes in my URLs for examples; I do not have enough "reputation points" to post multiple link, even though they're fake links). I have a back-end server running Apache at 1.2.3.4 that ...
0
votes
1answer
44 views

OpenShift Free Tier: 503 Service Unavailable

I've been working on my Ghost theme for the last few hours, and suddenly this error. Attached is a copy of my HAProxy status output. I've restarted both NodeJS and HAProxy. Neither restart fixed ...
0
votes
1answer
43 views

HAProxy ACL multiple OR conditions

Using Haproxy 1.5.12 running on Ubuntu 12.04 I need to restrict access to my website to requests either coming from certain IPs or having a defined parameter in the request. So for example the ...
0
votes
0answers
16 views

haproxy, iptables & iproute2 as a mean to select a different src vIP for same default GW

Got a HAproxy 2 node cluster/setup, each node has an external and internal NIC. External has a default gw: .249 service service pool A pool B srv1..srvN srv1..srvM ...
0
votes
0answers
11 views

haproxy 500+ connections to its own stats port

I have the following at the end of my haproxy.cfg: listen ec-prod-lb-1 *:8080 stats uri /stats stats realm Haproxy\ Statistics stats show-legends stats refresh 5s ...
1
vote
0answers
29 views

haproxy process not releasing memory

After a reload, old haproxy process remains there and doesn't release memory (sometime it does but behaviour is not consistent). After killing the old process (several days old) the memory get ...
0
votes
1answer
55 views

HAProxy basic auth except from specific IP

I have set up basic authentication for my backend, like this: backend webservers acl is_auth_ok http_auth(SiteUsers) http-request auth realm MySite if !is_auth_ok This works but now I want ...
2
votes
0answers
36 views

HAProxy: replacing subdomains with paths

My previous question was too complicated and unclear. Hopefully this is more straight to the point... Currently I'm using subdomains to access application UIs externally. Some allow access via paths: ...
1
vote
1answer
98 views

Haproxy 301 URL redirect on query string condition

Using Haproxy 1.5.12 running on Ubuntu 12.04 My website gets a lot of requests like this one: http://www.example.com/foo/bar/mypage.php?gallery=&position=3 the correct URL should be: ...
1
vote
2answers
36 views

Using a load balancer in front of many sites

Is there any reason not to use a software load balancer / proxy in front of many small websites for admin purposes. I work for a web design agency where we have maybe 30-40 small to medium websites ...
0
votes
1answer
44 views

Haproxy rules(set-header) not working and it's not changing base url of request

I am trying to integrate cloud foundry adminui application. Url which I access is https://myexample.com/adminui/ It works as follows: Request https://myexample.com/adminui/ Response ...