Forum Discussion
winifred_corbet
Nimbostratus
Jan 24, 2011Replace HOST not working
We have a list of URIs that we added to a data group
For only those URIs in the datagroup, we need to change the Hostname, keeping the URI
This irule attempt is not working. Host name ...
Chris_Miller
Altostratus
Jan 25, 2011So, if your rule looks like the below, you're actually seeing the log show up?
when HTTP_REQUEST {
if { [matchclass [string tolower [HTTP::uri]] starts_with $::abunchofURLs] } {
HTTP::header replace Host "www.brand-new-name.com"
log local0. "URI was [HTTP::uri] and host was changed from [HTTP::host] to "www.brand-new-name.com"
}
}
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
