Skip to content

Instantly share code, notes, and snippets.

@smartXZX
Last active June 15, 2018 15:56
Show Gist options
  • Select an option

  • Save smartXZX/6aaeba5257bf77ed770fd4cea9024e94 to your computer and use it in GitHub Desktop.

Select an option

Save smartXZX/6aaeba5257bf77ed770fd4cea9024e94 to your computer and use it in GitHub Desktop.
Working backend in haproxy for elasticsearch
use_backend elasticsearch if { req.hdr(Host),regsub(:[0-9]+$,) -i elasticsearch.mydomain.local }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment