kouriada_284551
Dec 28, 2018Nimbostratus
2 and more irules together
Hi everyone, I would like to ask if is possible to use this kind of irule for multiple headers Location
when HTTP_RESPONSE {
if { [HTTP::is_redirect] }{
HTTP::header replace Location [string map {"[http://domainA"](http://domainA); "[https://domainA"](https://domainA);} [HTTP::header Location]]
HTTP::header replace Location [string map {"[http://domainB](http://domainB) " "[https://domainB"](https://domainB);} [HTTP::header Location]]
HTTP::header replace Location [string map {"[http://domainC](http://domainC) " "[https://domainC"](https://domainC);} [HTTP::header Location]]
} }
Or if is it better to create 3 separated irule for each domain
one vs 3 or more, what is better for performance of F5 in general? irule vs policy? Policy are more clear and easier to create for me, but which way is better for f5?
Thank you AK