What if i want to send /* to the backend except /portal

Dear All,

I need to forward my.domain.com/* to the star_backend and my.domain.com/portal to portal_backend.

Tested multiple different configurations in ACL part but unsuccessful!
anyone can help me with that?
This is my HAproxy version: HA-Proxy version 1.8.4-1deb90d 2018/02/08

Sincerely
Amir

It would have been helpful to have the configuration file you’ve tried.

I’ll try to give bellow a few examples

acl my-domain req.hdr(Host) -i my.domain.com
acl portal path /portal

use_backend portal_backend if my-domain portal
use_backend star_backend if my-domain !portal
1 Like