Forum Discussion
sysadmin_2015_2
Nimbostratus
Oct 09, 2017iRule - Add Host Header
Hello,
Currently we use the below iRule to route traffic from a 3rd party company, its been working great so far. But now we have set up a VPN tunnel with this 3rd party where there traffic is nat...
Stanislas_Piro2
Cumulonimbus
Oct 09, 2017Here is an optimized version of your Irule.
when HTTP_REQUEST {
switch [HTTP::uri] {
"qa/test1" -
"qa/test2" {
HTTP::host test.domain.com
pool Pool_QA_test
}
"prod/test1" -
"prod/test2" {
HTTP::host prod.domain.com
pool Pool_Prod_test
}
}
}
HTTP::host command only modify host header without change of URI
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
