Forum Discussion
Rodney_Newton_7
Nimbostratus
Nov 08, 2006Change Host Value
All,
I am trying to do something I thought would be pretty simple but I am missing something... whenever I see a request for www.outsidedomain.com I need to change that to servername. When I...
JRahm
Admin
Nov 08, 2006I've seen in other posts that you can set the host itself with the HTTP::host command, though it doesn't appear to be supported in my version (9.1.2)
when HTTP_REQUEST {
if { [HTTP::host] equals "www.outsidedomain.com" }{
HTTP::header replace host "servername" HTTP::host "servername"
log local0. "The header is [HTTP::header host] "
log local0. "The Host Value is [HTTP::host]"
} else {
log local0. "No Changes Made"
}
}
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