Forum Discussion
Yehsay_Moua_113
Nimbostratus
Nov 12, 2008Need help to write iRule to modify hostheader
Hi all. I need some assistance with writing an iRule. I pretty much have the basics of writing redirects but here is something new that I'm not familiar with. How can I write a iRule to spoof or ma...
hoolio
Cirrostratus
Nov 13, 2008Hi,
You can use HTTP::header replace Host "new_domain.com" to replace the existing host header value with the new domain:
when HTTP_REQUEST {
Replace the existing host header with new_domain.com.
If there isn't an existing host header it will be inserted
HTTP::header replace Host "new_domain.com"
}
Aaron
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
