Created
October 25, 2018 16:42
-
-
Save luszczynski/c45afe8708485623d09ae15b21c1f230 to your computer and use it in GitHub Desktop.
iRule f5 openshift
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
www.cliente.com.br/app1 | |
www.cliente.com.br/app2 | |
when HTTP_REQUEST { | |
if { ([HTTP::uri] starts_with "/app-a") } { | |
HTTP::header replace Host "app-a.apps.no.openshift.com.br" | |
set uri [string map -nocase {"/app-a/" "/"} [HTTP::uri]] | |
HTTP::uri $uri | |
pool openshift_infra_nodes | |
} | |
} | |
when HTTP_REQUEST { | |
if { ([HTTP::uri] starts_with "/app-b") } { | |
HTTP::header replace Host "app-b.apps.no.openshift.com.br" | |
set uri [string map -nocase {"/app-b/" "/"} [HTTP::uri]] | |
HTTP::uri $uri | |
pool openshift_infra_nodes | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment