A few observations after a quick glance:
- Instead of
starts_with
I would recommend matching (i.e. eq
) the actual host. This avoids issues if another instance is added at some point. - The FQDN you're using is invalid. Although I assume it's a placeholder, make sure you drop the slash (
/
). - The path you're matching (
/dev
) may be too limited. Keep in mind that other valid matches may include /dev/
, /dev/index.html
, et cetera. This would be a good candidate for starts_with
. - I would group the header manipulations. In other words, move the pool selection to the bottom.