Forum Discussion
Brian_Mayer_841
Nimbostratus
Mar 04, 2008Host header replace not working....
Hey all,
We're trying to replace the host portion of URLs for one of our virtual servers if they match a certain host string. I found the example below and applied it to the virtual server ...
Nicolas_Menant
Employee
Mar 04, 2008when HTTP_REQUEST {
log local0. "http_request triggered host is: [HTTP::host]"
if { [HTTP::host] equals "www.example.com"} {
log local0. "host matched, replacing it by example.company.com"
HTTP::header replace "Host" "example.company.com"
}
}
Can you then show us the output of this test?
the log will appear in /var/log/ltm
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