HAProxy community

Small help for the n00b - Dynamic rule

I want to have a dynamic rule that takes subdomain and uses that value to form a backend name connection; example

123.foo.bar = use backend 123_backend
234.foo.bar = use backend 234_backend

even more interesting alternative if it could use a dynamic lan domain naming…
123.foo.bar = use backend 123.foo.lan

else (no backend responding on that name) use default backend

I want to avoid using any mapfile (to avoid restart of Ha) and minimize manual administration, the general idea is to have 2-3 rules dynamically covering hundred of front/backends

I hope the question is not to stupid to be asked :slight_smile: