HAProxy terminates unexpectedly while executing mysql check
I am in a process of creating Lua script to check lag between two different mysql instances and to failover to the other instance when first the primary is unavailable or the replication lag is high....
View ArticleHow redirect 302 response to https
On the app by opening a link I’ll get 302 response with redirect link to http. I need to redirect that to https, how get this? I have tried to add “http-request redirect scheme https unless { ssl_fc...
View Article'could not resolve address' but ping works
(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged) 1 post - 1 participant Read full topic
View ArticleHAProxy with IIS CCS
Hi there. I’ve been trying to configure HAProxy to balance sadly old IIS sites using CCS (Centralized Certificate Store) feature without success. I get an SSL handshake failure. Disabling CCS on the...
View ArticleHow can I use HAProxy as Forward Proxy for PowerMTA?
PowerMTA can use HAProxy as forward proxy to deliver mail using the IP address HAProxy is serving on. This is not the typical use case of HAProxy because it’s not load balancing, it is connecting...
View ArticleHaproxy "Exit Code 0" on AWS ECS Docker container
Hi, I am trying to run the haproxy container on my AWS ECS Fargate cluster. I have pulled the haproxy docker image from dockerhub with version: 2.0.21. The container runs for 2/3 seconds and stops...
View ArticleBackend initial state - DOWN
Hello! Can I configure HAPROXY so that backends has initial state DOWN after startup? I need the haproxy doesn’t forward connections to backends till they explicitly become UP. In current situation I...
View ArticleTraffic control per subdomain
Hi guys Currently, I have the following setup: defaults log global mode http retries 3 balance roundrobin option abortonclose option redispatch contimeout 10000 clitimeout 150000 srvtimeout 300000...
View ArticleLayer7 "TCPCHK got an empty response at step 1", check duration: 0ms?
Hello I have a few random Health check for server xxx failed, reason: Layer7 invalid response, info: "TCPCHK got an empty response at step 1", check duration: 0ms, status: 2/3 UP. which sometimes...
View ArticleHttpchk HTTP/1.1 host
Hi I am trying to setup a http health check and I am trying to set the HOST as the server ip and port Example backend staging balance source option forwardfor http-request set-header X-Forwarded-Port...
View ArticleGetting too many health checks towards backend
Hi, I noticed in the HAproxy logs that the number of health checks (or connections) towards the configured backend server are way more often than configured. Any ideas why? Or how to debug more? I’m...
View ArticleGetting 405 method not allowed | using HAProxy on top of rest api
Hi, I am facing error after setting up HAProxy on top of two web servers which have a rest api each. I am getting 405 method not allowed error. Here is my configuration file below: Could someone...
View ArticleBackend down check when backend isn't down
Hi community, I’m starting to get at least once a day this errors… [WARNING] 131/213634 (7) : Server mediawiki_be_https/mediawiki is DOWN, reason: Layer7 timeout, check duration: 10002ms. 0 active and...
View ArticleTcp proxy to differentiate different protocols on the same port
there are some ios/osx clients which want to talk plain turn over 443 in certain situations. eturnal does not currently implement handling this. coturn does. but i would rather not go back to that....
View ArticleCorrelating requesta based on cookie: to sha or not to sha?
I want to be able to link various requests to my backend that are coming from same client. I came with adding header based on cookie: backend servers description My backend http-request set-header...
View ArticlePROXY Protocol not being added
Hello everyone, I have two HAProxy (v2.3.8) servers running, and I’m intercepting all the traffic in between the proxies. Now I’ve added the send-proxy-v2 on the server line on HAproxy server 1 (since...
View ArticleAllowing only some paths - not working as planned
Hi all I’m having some issues with an ACL that’s not working as intended. I have a service and I want to only allow very specific paths to be accessed. For example I want to allow access to...
View ArticleHAProxy, OPNsense and a blocked port 443
Would greatly appreciate some additional pairs of eyes. I have HAProxy set up on OPNsense, been trying to translate guides from pfsense to opnsense, but I’ve been running into multiple issues. HAProxy...
View ArticleDisable multiple bindings on same port
Hi all, I recently discovered it is possible to have multiple front-ends which bind to the same ip/port combination. I was surprised to find this was even possible - I would have expected an error on...
View ArticleHaproxy high availability setup in AWS
Team, We are using haproxy as a single node using docker for a while and it has been working very well. Now we plan to setup high available HA-Proxy to avoid SPOF. I went through this blog: HAProxy on...
View Article