Adam_Fint_1489
Oct 04, 2011Nimbostratus
splitting a domain apart; can I used awk in an iRule?
Our Marketing department went out and purchased hundreds of domains names in the format of xxxcompany.com, such as:
applecompany.com
bananacompany.com
picklecompany.com
They want these to point to a VIP, and have the F5 do a 301 to:
applecompany.com -> apple.company.com
bananacompany.com -> banana.company.com
picklecompany.com -> pickle.company.com
whatevercompany.com -> whatever.company.com
I don't know the business case, but this is what they want.
Can I use awk in an iRule to split the HTTP::host apart?