Forum Discussion
Jas_44429
Nimbostratus
Dec 15, 2010irule for HTTP header rewrite
Hi,
Fairly new to F5's (as you can probably tell from the question) but I wish to write an irule which will:- replace http://10.10.10.10/whatever1/whatever2.txt with http://www.t...
hoolio
Cirrostratus
Dec 15, 2010Hi Jas,
Welcome to DC. You can start with an iRule like this to replace the Host header in requests before they're sent to the pool:
when HTTP_REQUEST {
HTTP::header replace Host "www.example.com"
}
If the servers each have a unique host header they're looking for, you can use an iRule and datagroup like this:
http://devcentral.f5.com/wiki/default.aspx/iRules/rewrite_host_header_to_server_name.html
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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