# Backends "use-server" with dynamic name

**URL:** https://discourse.haproxy.org/t/backends-use-server-with-dynamic-name/7428
**Category:** Help!
**Created:** [February 22, 2022, 11:59am UTC](https://discourse.haproxy.org/t/backends-use-server-with-dynamic-name/7428 "2022-02-22T11:59:18Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Toni](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@Toni](https://discourse.haproxy.org/u/Toni)
#### Post date: [February 28, 2022, 3:43pm UTC](https://discourse.haproxy.org/t/backends-use-server-with-dynamic-name/7428/4 "2022-02-28T15:43:12Z")

</div>

Hi  
I just noticed, there was a similar thread already:

> [@Dynamic backend switching using nbsrv with Host header](https://discourse.haproxy.org/t/dynamic-backend-switching-using-nbsrv-with-host-header/7009):
>
> Hi I am using haproxy 2.4.7, and I would like to dynamically route to the correct backend, if the backend has available servers. I struggle to find the correct syntax using nbsrv(). The error I am getting is: # haproxy -c -f /etc/haproxy/haproxy.cfg [NOTICE] (31364) : haproxy version is 2.4.7-b5e51a5 [NOTICE] (31364) : path to executable is /sbin/haproxy [ALERT] (31364) : parsing [/etc/haproxy/haproxy.cfg:18] : error detected while parsing switching rule : missing comma after fetch ke…

Toni

---

_[View the full topic](https://discourse.haproxy.org/t/backends-use-server-with-dynamic-name/7428)._
