Forum Discussion
Lloyd_Kim_55160
Nimbostratus
Dec 06, 2005IRULE HTTP FORWARD HELP
I was hoping someone could help me with an irule.
Situation:
We are trying to move over a client to another F5 and while the DNS replication takes place we would like to have a rule that forwards our client URL to the new IP address.
For example, when a client goes to support.test.com, I would like an irule that if any matches that url it will be redirected to the virtual on our new F5.
Is this possible?
3 Replies
- You could do a HTTP::redirect to the other virtual. The only downside is that you will either need to have a unique domain name for the new virtual or redirect the client to the IP address (which will show up in their browser.
ie.when HTTP_REQUEST { HTTP::redirect "http://other.domain.com[HTTP::uri]" - or - HTTP::redirect "http://1.2.3.4[HTTP::uri]" }
Either way, the client will see that the domain changed in their request.
-Joe - Lloyd_Kim_55160
Nimbostratus
Thanks Joe,
So in the client browser after the redirect it will show as either the IP address or the redirect url name? I guess there is no way around this..... - Colin_Walker_12Historic F5 AccountThe way around it would be to do a rewrite in the host information both incoming and outgoing, rather than a redirect.
This is definitely a more involved process, but you could most likely make it an invisible process to the user.
If it's worth the trouble you can find more information about it here.
-Colin
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
