frisco76_104868
Oct 29, 2009Nimbostratus
hostname rewrite
Hi all,
I want to throw a message out on the forum..this might not require an iRule (if we can do it without an iRule, that would be preferred method).
I need to be able to rewrite the hostname of incoming and outgoing request for a single pool. (I have LTM 1600, v 9.4.5) Basically, it looks like this:
For a single pool, any incoming HTTP Request that have http://www.mycompany.com/* ===rewrite the hostname to ====> http://blogs.mycompany.com/* (the server must see blogs.mycompany.com and the client will continue to see www.mycompany.com -- I'm not doing a redirect)
The outgoing (the return) request (HTTP Response), need to rewrite the hostname back to the original name (http://blogs.mycompany.com/* ====rewrite the hostname to =====> http://www.mycompany.com/* (the LTM will intercept and rewrite the host header back to www for the client).
If I can this in a HTTP profile, that would be awesome. Would the iRule be as simple as this:
HTTP_REQUEST{
HTTP::host "blogs.mycompany.com"
}
HTTP_RESPONSE{
HTTP::host "www.mycompany.com"
}
I saw some Reverse Proxy examples but it looked like overkill for what I want to do. Will the iRule I show above work? (Or can I set it up in the F5 HTTP profile?)
Thanks in advance...
-frisco76: cool: