Forum Discussion

george_burtz_31's avatar
george_burtz_31
Icon for Nimbostratus rankNimbostratus
Feb 21, 2007

redirect question

We have a situation where we want to use the LTM as a reverse proxy to handle incoming requests to a server farm. Our app has an HTTP POST interface (MS Web services) and each customer has their own folder structure. What we want is to see the incoming http as

 

 

https://portal.foo.com/mismo/b2b/$customername/start.asp with customername varying according to the customer. We want to use an iRule to search for the customername in the URI and redirect the traffic either to an individual server, or to a URI on a pool of servers. Being a novice with iRules I was hoping someone could give me some pointers on how to do this most effectively, or tell me if I am approaching this all wrong, etc.

 

 

Thanks!
  • It sounds like you need to use something like findstr to evaluate the string in the URI and execute based on it.

     

     

    Reference the following url for information regarding findstr:

     

     

    http://devcentral.f5.com/wiki/default.aspx/iRules/findstr.html

     

  • Forgot to mention that you should also look at the universal inspection engine to define which nodes you want a particular user to hit, you can specify the specific node in a pool based on whatever conditions.
  • Hi,

     

    I am new to BIG-IP, and I don't how to setup a virtual ip address server that will do load balancing

     

    and also redirect to one of four diffent url nodes as shows below:

     

    virtual-ip: 172.16.1.5

     

    redirect url:

     

    http://host1.abc.com/web_html/signon.html

     

    http://host2.abc.com/web_html/signon.html

     

    http://host3.abc.com/web_html/signon.html

     

    http://host4.abc.com/web_html/signon.html

     

     

    Thanks,