iRule help
Hi Can anyone help me to create an iRule. My scenario is as following , Users from outside (internet) will access the url https://mail.company.com/archive for accessing their archived/old emails. but url on the archive server side is https://mycompany.archivemail.com/archive.
Mail.company.com is belongs to exchange 2013 server and the exchange service are load balanced and secured by BIG-IP LTM, APM and ASM. and the mycompany.archivemail.com is belongs to a different server, and this URL is not publicly accessible (It’s using for accessing the old/archived emails only).
In order to achieve the same, I have created a pool with name archive-pool for the archive servers and the following iRule for changing the user requested url.
when HTTP_REQUEST {
if {[HTTP::uri] contains "/archive"}
{
HTTP::header replace Host "mycompany.archivemail.com"
Pool archive-pool
}
}
And the iRule is applied to the Exchange VS and placed on the top of Exchange_2013_apm_combined_pool_irule7 (which is created by iAPP)) But its not working, I am getting the page not found error, If anyone can help to resolve this issue it would be highly appreciated.