Forum Discussion
KTrout_49248
Nimbostratus
Apr 16, 2008HTTP display assistance
I am new to the F5 world. I am toying around with iRules and need some assistance please.
I create an iRule that redirects a certain link to another area. Works great. However the URL is mi...
Apr 16, 2008
Which part is misleading to the client? Redirects are basically a HTTP response to the browser with a new url to connect to. The client must be able to resolve the hostname in the url to be able to create a new connection. Are you saying that in your case, "mssmaxweb01" is not a valid hostname for the client to be able to resolve?
Since I don't totally understand your requirements, I'm shooting at the dark here, but there is another option. If your host mssmaxweb01 is hosted on the same backend servers that your iRule is serving to, you can just change the hostname/URI that is sent to the backend server to get it to "think" the browser sent that redirected request. Something like this:
when HTTP_REQUEST {
if { [HTTP::host] contains "maximo.intranet.nrpc"} {
HTTP::header replace "Host" "mssmaxweb01"
HTTP::uri "/MaximoSupport"
}
}Not sure if this is applicable for you or not, but thought I'd bring it up.
-Joe
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
