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://newapp.company.com
This would redirect the app.company.com:443 to newapp.company.com
I am using the following redirect irule
when HTTP_REQUEST {
if { [HTTP::host] eq "app.company.com*"} {
HTTP::redirect "http://newapp.company.com"
}
}
It doesnt appear to be
redirecting as I expected. I'm new to iRules as well so I'm just looking for some guidance on this one.
- The_Bhattman
Nimbostratus
I am assuming that the http://app.company.com:443 is going to a VIP listening on port 443, yes? - owaters_69636
Nimbostratus
Sorry for the late response....I have tried to use this iRule but it doesnt redirect app.company.com:443 to newapp.company.com. What I am trying to do is find an iRule that will take a http://app.company.com:443 and redirect it to http://newapp.company.com. F5 instructed that I do use the"*" from app.company.com - The_Bhattman
Nimbostratus
The following irule could workwhen HTTP_REQUEST { if {[HTTP::host] eq "app.company.com" } { http://redirect "http://newapp.company.com/" } }
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