Forum Discussion

falooda_281506's avatar
falooda_281506
Icon for Nimbostratus rankNimbostratus
Sep 19, 2016

irule pool

Any traffic that goes to the IIS pool should go to node_address/ADMIN URI in my pool... how would I update this? Below is the iRule I am currently using:

when HTTP_REQUEST {
if { [string tolower [HTTP::host]] ends_with "test.com" and ([HTTP::uri] == "" or [HTTP::uri]== "/")} { 
       pool IIS
   } else {
        pool AAP
         } 
}

5 Replies

  • when HTTP_REQUEST {
      if { [string tolower [HTTP::host]] ends_with "test.com" and ([HTTP::uri] == "" or [HTTP::uri]== "/")} { 
        [HTTP::uri] "/ADMIN"
        pool IIS
      } else {
        pool AAP
      } 
    }
    
  • when HTTP_REQUEST {
      if { [string tolower [HTTP::host]] ends_with "test.com" and ([HTTP::uri] == "" or [HTTP::uri]== "/")} { 
        [HTTP::uri] "/ADMIN"
        pool IIS
      } else {
        pool AAP
      } 
    }
    
  • Try this:

    when HTTP_REQUEST {
      if { [string tolower [HTTP::host]] ends_with "test.com" and ([HTTP::uri] == "" or [HTTP::uri]== "/")} { 
        HTTP::uri "/ADMIN"
        pool IIS
      } else {
        pool AAP
      } 
    }