Forum Discussion

azzieo_175120's avatar
azzieo_175120
Icon for Nimbostratus rankNimbostratus
Oct 24, 2014

iRule to permanently assign www.abc.com/site1/ to webserver1 and www.abc.com/site2/ to webserver2

Hi guys - please let me know if an irule can permanently assign www.abc.com/site1/ to webserver1 and www.abc.com/site2/ to webserver2 ... Thanks!

 

1 Reply

  • kunjan's avatar
    kunjan
    Icon for Nimbostratus rankNimbostratus

    See if this helps:

    when HTTP_REQUEST {
      if { [HTTP::uri] starts_with "/site1" } {
         node IPwebserver1 
      } elseif { [HTTP::uri] starts_with "/site2" } {
         node IPwebserver2 
      }  
    }