Trying to understand why this doesn’t work. Only the first condition path_beg is evaluated and the second condition checking the hostname isn’t.
I would expect the following but it seems that only the first condition is checked and the second is ignored. I’ve tried with “&&” “AND” and “” but it doesn’t make any difference.
https://example.com/crowd goes to crowd-backend
https://example.com/jira goes to jira-backend
https://auth.example.com/crowd goes to rancher-backend but it actually goes to jira-backend
# Atlassian Backends
use_backend crowd-backend if { path_beg /crowd && hdr(host) example.com }
use_backend jira-backend if { path_beg /jira && hdr(host) example.com }
# Rancher Backends
use_backend rancher-backend if { hdr(host) example.com }
use_backend keycloak-backend if { hdr(host) auth.example.com }
use_backend rancher-backend if { hdr(host) chat.example.com }