Redirect HTTP to Pool
Hi,
I have an iRule that is currently working to redirect an http to a server hosting a login form. We have now created a landing page on two nodes of a pool that I have created. I am not having any luck in getting the iRule to redirect to the Pool. Here is the current iRule and the new one that is not working. Any thoughts would be appreciated. The "url" after the equals are all the iterations and aliases of the address.
when HTTP_REQUEST { set o365_hostname [string tolower [HTTP::host]] if {$o365_hostname equals "url"|| $o365_hostname equals "url"|| $o365_hostname equals "url"|| $o365_hostname equals "url"|| $o365_hostname equals "url"|| $o365_hostname equals "url"}{ log.local0 "Hostname was redirected. Original name: $o365_hostname" HTTP::redirect http://myloginpage/[HTTP::uri] } }
The new one is:
when HTTP_REQUEST { set o365_hostname [string tolower [HTTP::host]] if {$o365_hostname equals "url"|| $o365_hostname equals "url"|| $o365_hostname equals "url"|| $o365_hostname equals "url"}{ pool Office365_Landing_Page } }
Thanks Ray