I'm setting up HAproxy as a reverse proxy on my NAS, because I would like to use easy to remember subdomains instead of referring to the apps on my NAS with their port numbers.
I managed to get it working, except for few backend 'servers', those who don't just refer to a port, but to a certain path.
For instance I would like to have nav.mydomain.com point to backend 127.0.0.1:9000/modules/navigator/www/login.phphttps://unix.stackexchange.com/posts/420303/edit
My first thought was to configure the backend like this
frontend http-in
bind *:80
mode http
acl nav hdr_beg(host) -i nav
use_backend nav_node if nav
backend nav_node
mode http
server nav-server 127.0.0.1:9000/modules/navigator/www/login.php check
But apparently, it is not as simple as that... So did some more hours of research on how to handle this and found topics on reqrep which is rather chinese to me... That's why I decided to register here to get some help to figure this out.
For now I'm just trying to get it working, in a later phase I will (try to) add SSL.