# HA Proxy ACL for URL matching dynamically

**URL:** https://discourse.haproxy.org/t/ha-proxy-acl-for-url-matching-dynamically/181
**Category:** Help!
**Created:** [March 22, 2016, 10:38pm UTC](https://discourse.haproxy.org/t/ha-proxy-acl-for-url-matching-dynamically/181 "2016-03-22T22:38:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![souvikbhattacharyas](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@souvikbhattacharyas](https://discourse.haproxy.org/u/souvikbhattacharyas)
#### Post date: [March 22, 2016, 10:38pm UTC](https://discourse.haproxy.org/t/ha-proxy-acl-for-url-matching-dynamically/181/1 "2016-03-22T22:38:38Z")

</div>

Recently I have gone through HA Proxy ACL details and need help with a specific scenario. My scenario is given below.

My URL’s will be like [https://companyName.research.com/index](https://companyName.research.com/index).  
Company name is dynamic today I have 2 companies and later it may reach  
to [hundred.In](http://hundred.In) the ACL section it normally checks in URL that if any  
particular String exist or not and according to that forward to back  
end. This configurations are not dynamic. Like I have one URL start with  
blog then will forward it to blog back end. But my scenario is  
completely different. Here system will check is any company name exist  
or not if exist then it will forward the request to the back end with  
that company name dynamically. Like if company dummy given forward it to dummy.  
But as I said company names are not known to me so, it’s ha proxy which  
will fetch the company name from url and will find the suitable backend  
with name matching and will forward. Is that possible with HA Proxy.

---

<div class="post-metadata">

### Author: ![Baptiste](https://avatars.discourse-cdn.com/v4/letter/b/cab0a1/32.png) [@Baptiste](https://discourse.haproxy.org/u/Baptiste)
#### Post date: [March 22, 2016, 10:53pm UTC](https://discourse.haproxy.org/t/ha-proxy-acl-for-url-matching-dynamically/181/2 "2016-03-22T22:53:06Z")

</div>

This is possible only if you can pre-configure the backend.
