Forum Discussion
astokes_6920
Nimbostratus
Nov 11, 2010Rewrite host header to specific pool member
I've done basic host header rewrites rules in the past but I've just received an odd request that's beyond me. I'm scrapping together a solution from multiple posts but haven't got anything to pass y...
astokes_6920
Nimbostratus
Nov 16, 2010I think I'm really close now. With the following, I get the following error: Line 4 [undefined procedure: class]
when HTTP_REQUEST_SEND {
clientside {
if {[HTTP::host] equals "netengtest.company.com"} {
HTTP::header replace Host "[class match -value [LB::server addr] equals netenghosts]"
}
}
}
"Undefined procedure" seems to be trying to say that the data group doesn't exist? I did create the data group from the GUI. In bigip.conf, it looks like this:
class netenghosts {
"\"10.200.32.200\" { \"TEMPNETENG01\"}"
}
BTW - I'm running 9.4.7. Initially, I did try editing the bigip.conf file directly using what you suggested (replacing the relevant pieces of course) but that tossed errors as well.
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