Forum Discussion
piowis_321863
Nimbostratus
May 24, 2017Redirect when port 80 is visible in url
Hello,
I am just wondering is it possible to get redirect only if port 80 in url is visible?
I mean if application send url like sampleurl:80/sample/context redirect it to sampleurl:8889/sample/conte...
Ilian_Ivanov
Nimbostratus
May 25, 2017Try with that one:
when HTTP_REQUEST {
if { ( [HTTP::host] ends_with ":80" ) and ( [HTTP::uri] starts_with "/sample/context" ) } {
HTTP::header replace Host "sampler:8889"
pool Sample_Pool_8889
}
else {
pool Some_Other_Pool
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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