Apache Logs Show the Load Balancer's IP, Not the Client's: Fixing It Behind HAProxy

You put HAProxy in front of two Apache servers, everything balances nicely, and then you open the access log on one of the web servers. Every single request comes from the same IP: the load balancer. This guide explains why that happens, the quick fix (log the X-Forwarded-For header), and the cleaner fix with mod_remoteip, plus the detail most guides skip: the quick fix can be faked by any client. ...

December 6, 2026 · 5 min · Sysadmin Field Notes

How to Replace GRUB with systemd-boot on Debian 13 (Trixie) Without Breaking Secure Boot

Debian 13 can install systemd-boot instead of GRUB, but only from the Expert install mode of the installer. If you already have a normal install with GRUB, you can switch afterwards, and most guides make it look like two commands: apt install systemd-boot and bootctl install. On a machine with Secure Boot enabled, that is not enough. I did this on a Debian 13 VM (OVMF with the Microsoft keys enrolled) and ran into three problems the short guides skip: ...

December 6, 2026 · 9 min · Sysadmin Field Notes