iRule for F5 URL Redirect

How do I create an iRule within the GSLB in order to have URL Redirect for 3 Virtual Servers within the Local Traffic based off one Public IP Address

webserver1,domain.com
webserver2.domain.com
webserver3.domain.com

We currently have one public IP Address left and need to publish 3 servers but don't have the funds for more static public address.
LVL 1
VHAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

LajuanTaylorCommented:
@VH -
Assuming that your one public IP resolves to domain.com and you don't want to load balance across the three servers... You could place each server in their own pool - Server1_Pool,  Server2_Pool, and Server3_Pool.

Then in your Local Traffic policies create a single policy with 3 separate URL forwarding rules based on the incoming URL request. For example:
URI path begins with any of /westregion --> Forward traffic to Server1_Pool
URI path begins with any of /eastregion --> Forward traffic to Server2_Pool
URI path begins with any of /southregion --> Forward traffic to Server3_Pool

Is this what you are looking to do?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
bigip

From novice to tech pro — start learning today.