Skip to content

Instantly share code, notes, and snippets.

@double-p
Created May 21, 2017 05:19
Show Gist options
  • Save double-p/39f1ef13040b40bd70d2c6c4575e1497 to your computer and use it in GitHub Desktop.
Save double-p/39f1ef13040b40bd70d2c6c4575e1497 to your computer and use it in GitHub Desktop.
haproxy.conf:
http-request redirect location %[path,lower,map(/etc/haproxy/redirects-path.map)] code 301 if { path,lower,map(/etc/haproxy/redirects-path.map) -m found }
redirects-path.map:
/help /en/help/help.html
/sitemap /en/sitemap.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment