Tyranon_113005
Aug 28, 2018Nimbostratus
[iRules]redirect to other site or pool
Hi, I'm trying redirect by host name.
When the access http://aaa.com, redirect to https://bbb.com When the access https://bbb.com, just through to pool related to VS bbb.com.
I set like below, but error has appeared 01070151:3: Rule [/Common/redirect_irule name] error: /Common/redirect_irule name:5: error: [undefined procedure: elseif][elseif { [HTTP::host] equals bbb.com }{ pool bbb.com }] ''
How I should correct?
when HTTP_REQUEST { if { [HTTP::host] equals "aaa.com" }{ redirect "https://bbb.com[HTTP::uri]" } elseif { [HTTP::host] equals "bbb.com" }{ pool bbb.com } }