Forum Discussion
Robert_47833
Aug 07, 2011Altostratus
HTTP::header replace Host and HTTP:redirect
Hi,dear irule
1:if there are rule1 and rule2 under one VS,order is rule1 and rule2
rule1:
when HTTP:request {
if { [HTTP::host] euqals "www.srwd18.com"} {
HTTP::redirect "h...
nitass
Aug 07, 2011Employee
so if someone visit www.srwd18.com,client will go to www.google.com or where?
i think so - he would be redirected to google.com
how to turn off rule2,I only know return will jump out of the current event in single irule.
have u seen these?
Stacking iRules: A Modular Approach by Deb
http://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/240/Stacking-iRules-A-Modular-Approach.aspx
iRules: Disabling Event Processing by Deb
http://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/236/iRules-Disabling-Event-Processing.aspx
2:if I use HTTP::header replace Host "www.baidu.com" to rewrite the request
it seems this will not change the item in broswer,such as IE
yes
so bigip will visit www.baidu.com for client,right?like a proxy
no, i don't think so. what bigip does is to replace host header in request to "www.baidu.com".
there are 2 datacenter, same website ,if I want to forward traffic in site1 to site2 ,how to forward them?
The only way I can think about is HTTP::REDIRECT,but this will change the item/address in client's broswer
so it seems HTTP::header replace Host is a good choice,
can't it be done by gtm?
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