Forum Discussion

Arie's avatar
Arie
Icon for Altostratus rankAltostratus
Aug 28, 2006

iRule to use specific member (or node)?

I am trying to put together an iRule that will use a specific node (or member) when the URL contains a specific string. However, I am unable to find much on how to pick a node (or member).
  • Jason_Roppolo_3's avatar
    Jason_Roppolo_3
    Historic F5 Account
    You may want to try this as well:

     

     

    It is from this SOL article

     

     

    https://tech.f5.com/home/bigipgtm/manuals/bigipgtm9_2_2/BIG-IP_9_2_2GTM_Guide-16-1.html

     

     

     

    As an alternative to the pool command, you can also write an iRule that directs traffic to a specific server. To do this, you use the host command. Figure 15.4 shows an example of this command.

     

     

     

     

     

    when HTTP_REQUEST {

     

    if {[HTTP::uri] starts_with "/foo/" } {

     

    host 10.0.0.20 80

     

     

     

    Thanks, Jason.