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
...
Mar 13, 2006
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
}
}The look in the /var/log/ltm file to see what was going on. If the messages show that the header replace command is being called, yet you don't see the correct Host header on your backend server, then this might be an issue you need to bring up with product support because this should work.
-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