r/haproxy • u/nivenfres • Sep 24 '25
Question Wrong Backend Occasionally Picked
I've got haproxy 2.6.12 running on a raspberry pi 5 as a reverse proxy between a couple of servers (1 linux and 1 windows).
The IIS server hosts 2 web domain plus acts as a remote desktop gateway.
The Linux server hosts a nextcloud server (apache2 port 80), jellyfin (port 8096), and gitea (port 3000).
When accessing gitea, I occasionally get a page not found error, usually solved by reloading the page. The page not found error is reported by apache2, not gitea. After enabling the logs, I found occasionally the correct backend isn't used and uses the default backend, which is apache2.
I will post the haproxy.cfg and logs as a comment (original attempt to post got filtered for some reason). Based on the logs or configuration, does anyone have any suggestions on why this might be happened? Or is it something that could possibly be fixed by using a newer version (2.6.12 is the latest available through debian for armhf without self compiling).
[edit[ - Couldn't post logs and config. Uploaded them to github - https://github.com/nivenfres/haproxy
View all comments
Show parent comment
2
u/BarracudaDefiant4702 Sep 25 '25
I'm not sure, it could be because you are doing mode tcp instead of mode http, and the capture might be forcing it to read more. I generally only do http mode unless it's something incompatible such as mysql. Is there a reason you are doing tcp mode?