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

Issue with map file selection of backend using variable

$
0
0

I am getting the following error when trying to use a map file and a variable to select the backend the correct backend.
“Jun 17 15:34:28 haproxy: [ALERT] 167/153428 (8967) : parsing [/local/idanywhere/etc/haproxy/conf/haproxy.cfg:531] : unknown keyword ‘use_backend %[req.artifact,map(/local/idanywhere/etc/haproxy/data/infra_artifact_backends.map)]’ in ‘frontend’ section”

I do a fetch and store it in variable req.artifact and then I use the command below to select the correct entry in the map file based on the contents of the variable. However, I cannot get past the issue with I am assuming syntax as HAProxy will not run. I have verified that the map file is in fact in the correct directory on the HAProxy server. What am I doing wrong?
Thanks,
Steve

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4731


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