Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4849

Anonymous ACL - Multiple AND Conditions Not Evaluted

$
0
0

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 }

2 posts - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4849

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>