Forum Discussion
Cid_Isbell_1617
Nimbostratus
Mar 10, 2006http response rewrite of url
I have a BigIP box that is loadbalancing two servers in a pool. A user will type in ecc.empireblue.com, and then is redirected to
https://smeeccweb01/Citrix/MetaFrame/default/default.aspx
or
https://smeeccweb02/Citrix/MetaFrame/default/default.aspx
What I need to be able to do is mask the server name. The app owner wants to see
https://ecc.empireblue.com/Citrix/MetaFrame/default/default.aspx
can I rewrite this response
Thanks!
- Colin_Walker_12Historic F5 AccountYou sure can! I'd recommend checking into the HTTP:header replace command.
- Cid_Isbell_1617
Nimbostratus
Thanks for the reply! - Cid_Isbell_1617
Nimbostratus
Hey everyone, I tried this iRule - I'd throw in some logging to find out exactly what isn't working. BTW, you can use the "HTTP::host" command to extract the current host. Also, the header is "Host" although I believe the header replace command ignores case. I've also made your second if and elseif so it doesn't have to be processed if the first one succeeds.
when HTTP_RESPONSE { set newhost "eccext.empireblue.com" log local0. "Requested Host: [HTTP::host]" if { [HTTP::host] eq "smeeccweb01" } { log local0. "Found requested host smeeccweb01, replacing with $newhost" HTTP::header replace "Host" $newhost } elseif { [HTTP::host] eq "smeeccweb02" } { log local0. "Found requested host smeeccweb02, replacing with $newhost" HTTP::header replace "Host" $newhost } }
- Cid_Isbell_1617
Nimbostratus
Hey, thanks for the info. I just realized that the client request comes into the BigIP box as an HTTP request but the reply goes back to the client as SSL! How do I do a ip header rewrite on SSL response? Is it possible? - First of all, I didn't know that could be done. How can a browser issue a HTTP request over port 80 and then receive the response as SSL? The encryption is part of the connection negotiation.
- Cid_Isbell_1617
Nimbostratus
Hey Joe, - Pete_Paiva_7147
Nimbostratus
cidisbell
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