Dec 07, 2009
Stream iRule Help
I want this iRULE to modify the returned URL based on HTTP request.
Problem: A8001 is the local server name. It changes from server to server. We don’t want to expose local server name ...
STREAM::expression [subst -nocommands {@http://A810[0-9]:8001/@http://$host/@}]
Make sure to test that with a 'b load' to see if the rule syntax works for your version. If you get an iRule parser error, you can try this instead:
STREAM::expression "@http://A810\[0-9\]:8001/@http://$host/@"
And can you clarify why you're calling 'event disable' in HTTP_REQUEST? That would prevent the HTTP_REQUEST event from triggering if a client establishes a TCP connection, makes one request for a host in your datagroup and then makes a second HTTP request on the same TCP connection.
Aaron