Forum Discussion
Load Balance Friendly URL to two unfriendly URL's
Hi Nate,
A couple of things to make note of. First is that nitass had the right idea, but I would make a slight modification of his iRule:
when HTTP_REQUEST {
if { ([HTTP::uri] equals "/") || ([HTTP::uri] equals "") } {
HTTP::uri "/iam/im/TBCQAIME/ui7/index.jsp"
}
}
when HTTP_REQUEST_SEND {
if { [class match -- [LB::server addr] equals QATEST] } {
clientside {
HTTP::header replace Host [class match -value [LB::server addr] equals QATEST]
}
}
}
People tend to be lazy and skip that trailing slash, so this iRule catches that as well.
The second thing that I noted was that the Data Group that you displayed earlier will cause some issues. If you look at the values in nitass' Data Group, the Value contains only the Host part of the URL, whereas in your config it contained the entire URL. I don't know if you've already changed this, but the Value should be the Host only.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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