Last active
April 12, 2018 20:37
-
-
Save clay584/fb742d1f05a000eb7226c1c5f21db41f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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