Skip to content

Instantly share code, notes, and snippets.

@clay584
Last active April 12, 2018 20:37
Show Gist options
  • Save clay584/fb742d1f05a000eb7226c1c5f21db41f to your computer and use it in GitHub Desktop.
Save clay584/fb742d1f05a000eb7226c1c5f21db41f to your computer and use it in GitHub Desktop.
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] starts_with "acme.com" && [string tolower[HTTP::path]] eq "/foo"} {
HTTP::header replace Host "newhost.acme.com"
HTTP::uri "/bar"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment