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...
Stanislas_Piro2
Cumulonimbus
May 24, 2017Hi,
your irule seems right. Maybe you have to rewrite request host header:
when HTTP_REQUEST {
if { ( [HTTP::host] contains ":80" ) and ( [HTTP::uri] starts_with "/sample/context" )}
{
HTTP::host "sampler:8889"
pool Sample_Pool_8889
}
}
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