Forum Discussion
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 ...
hoolio
Cirrostratus
Dec 10, 2009The regex could be fairly simple:
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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
