Questions tagged [haproxy]

HAProxy is an 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.

See also:

2099 questions
0
votes
1 answer

Haproxy not loading site correctly

I have a standard Haproxy config. The site works without Haproxy in front. I've put a test site on 2 server and Haproxy on separate server in front. frontend site mode http bind *:80 default_backend webservers option forwardfor …
user1607016
  • 133
  • 4
0
votes
0 answers

Can haproxy be used as a browser proxy?

Can haproxy be used as a browser proxy? In other words I want the frontend to be the internal network and the backend to be the Internet.
Cosmin Onea
  • 181
  • 1
  • 1
  • 4
0
votes
0 answers

How to migrate an established HTTPS-session from one server to another?

There are many HTTPS-servers (Nginx or Haproxy or something else?): single balancer, and multiple workers. Is it possible to migrate an established HTTPS session (with HTTP request headers already received) from balancer to worker? Balancer…
user2743554
  • 397
  • 3
  • 13
0
votes
1 answer

With HAproxy as LB, website not reachable always

I am setting up HAproxy LB in AWS environment as I am unable to use ELB. This is the requirement which forced me to go for HAproxy route: There are multiple websites that will run on one server. The websites needs to run over https. The site code…
Aseem
  • 79
  • 1
  • 3
  • 14
0
votes
0 answers

the best haproxy architecture?

I have two servers running ldap with replication between them, now i need to install a loadbalancer, so what i have in mind is: vm1: ldap1 vm2: ldap1(replication) vm3: haproxy1 + keepalived vm4: haproxy2 + keepalived vm4 will be backup for vm3, and…
0
votes
1 answer

HAProxy - Error 408 - randomly

Proxy version 1.7.9 2017/08/18 Simple GET requests made within script tags in the index file are getting dropped randomly, and instead the custom 400 error html is returned with the status code of 200. Sometimes 2-3 times in a row, sometimes not…
Király István
  • 377
  • 4
  • 10
0
votes
1 answer

HAproxy: choose different backend when servers are slow

I'm trying to implement a way to 'fake' a server response directly from haproxy while servers are down or slow (exceed some limit). I wrote a lua script which is loaded into haproxy (and is registered as a core.service) that mimic the server…
Shikloshi
  • 101
  • 2
0
votes
1 answer

HAproxy with RabbitMQ - how to get the client ip information in RabbitMQ?

I have a rabbitMQ server behind a haproxy server. And all the clients are connected through HAproxy to the RabbitMQ and using TCP. The challenge is when the rabbitMQ connection shows all the connections are coming from same ip of Haproxy server.…
Gigi
  • 1
  • 1
0
votes
1 answer

HaProxy alias domains

I have several domains which are variations of my main domain. I want to redirect them all to my main domain ignoring the protocol (http/https) and subdomain (www./beta.). Is there a way to do this in HAProxy config? I was thinking of something…
SJC
  • 211
  • 2
  • 6
0
votes
1 answer

single IP VPS - how to run apache / multiple nodejs on separate domains on port 80?

I know it isn't the optimal solution I have several apache sites running on port 80 - i wanted to a add a nodejs app - works fine on port 8000. I am using this setup…
0
votes
1 answer

How to make haproxy populate runtime changes across multiple nodes?

I need to make haproxy populate any changes across the multiple instances. In our setup we have two proxies with exactly the same config but we do failover manually. What I need is when I set one of the backend nodes to maintenance mode in the web…
smoofy
  • 3
  • 2
0
votes
2 answers

Haproxy httpchk with json

I need to check backend with POST JSON but cannot find a way to do this. Below is the curl POST that works. How do I do with in HAPROXY httpchk curl -H "Content-Type: application/json" -X POST -d…
isa
  • 1
  • 1
  • 2
0
votes
2 answers

HAProxy reqrep path backend frontend

I would like to add a path in my backend in haproxy. I don't want to use redirect. So I try to use reqrep Basically what I need: frontend: resources.mydomain.com/images/path/to/resource.png Then it needs to forward…
Geoffrey
  • 125
  • 1
  • 6
0
votes
0 answers

Apache slots exhausted when load balancer introduced

I have a web application that looks like this: WEB SERVER (PHP, Apache) -> MYSQL NODE This works perfectly without any issues, and has done for a long time. However, when I introduce a load balancer (I have used both HAProxy and ProxySQL, both…
0
votes
0 answers

How to Trigger a Script when HAProxy detected a Failure

I'm using two HAProxy servers and some nodes behind them. I'd like to let HAProxy trigger a script when it detected any one of the node failures. I know I can make it drop an email, but it was not what I want. So any ideas? Thanks.
NeilWang
  • 383
  • 4
  • 14