Forum Discussion

lunitic_56137's avatar
lunitic_56137
Icon for Nimbostratus rankNimbostratus
Jul 30, 2012

URI lists in v11

I have a list of uri's that I need to check against on incoming requests and send to an IP address or pool. I tried to put in the list with "or" statements but it wont load in v11.2. I am thinking the better way is to use iFules but all I can find on creating a file is something on a maintenance page. I would like to create the list in either a data group or a iFile, whichever is easier, to make it easier to maintain. I have searched all over but I haven't found anything appropriate. Any direction would be greatly appreciated

 

4 Replies

  • I'd use a datagroup - populate the URIs into a datagroup, then something like

    
      if { [class match -- [HTTP::uri] equals datagroup_name] } {
        pool POOL
      }
    
  • Thanks. One more question. On the Datagroup, I can structure it like:

     

     

    "URI1" := "/URI1",

     

    "URI2" := "/URI2",

     

    "URI3" := "/URI3",