Forum Discussion
John_Ogle_45372
Nimbostratus
Mar 18, 2010host field rewrite help needed
I have just tried using this iRule but it is not rewriting the host field in the GET requests as expected. I did a tcpdump on the pool side to verify. I need to have the host field appeneded to include :83 before the packet hits the server.
when HTTP_REQUEST {
if { [HTTP::host] equals"xyz.company.com"} {
HTTP::header replace Host "xyz.company.com:83"
}
}
What am I doing wrong? Any assistance would be much appreciated.
- L4L7_53191
Nimbostratus
This looks OK to me, and I just ran a quick test with some logging added:when HTTP_REQUEST { log local0. "Host is: [HTTP::host]" if { [HTTP::host] equals"xyz.company.com"} { HTTP::header replace Host "xyz.company.com:83" log local0. "New host header is: [HTTP::header Host]" } }
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