Forum Discussion
owaters_69636
Nimbostratus
Oct 17, 2009Redirect uri & port
I am trying to redirect a uri that has a designated port as part of the uri.
Example
We would like to have this uri redirected from http://app.company.com:443 to http://...
The_Bhattman
Nimbostratus
Oct 24, 2009The following irule could work
when HTTP_REQUEST {
if {[HTTP::host] eq "app.company.com" } {
http://redirect "http://newapp.company.com/"
}
}
This only works properly if you have a virtual server listening on 443 or ANY port and are terminating the SSL on the LTM. If you are using virtual server on 443 then I am assuming you have one listening on port 80 as well.
I hope this helps
CB
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