Forum Discussion
Newbie_7519
Nimbostratus
Apr 06, 2007How to add SelectedMember to URI
Could someone assist me in being able to create an iRule that will allow me to add the name of the Selected Node to the URI that is sent to the client browser? Basically, I'm trying to implement a wa...
dennypayne
Employee
Apr 06, 2007You'd probably be better off changing the application to insert the server name in the page content somehow.
You could insert it into the URI in the HTTP_RESPONSE event after collecting it in the HTTP_REQUEST event (LB::selected I think), but then you'd have to also strip it back out with every HTTP_REQUEST, because if you send it to the client, it will make it's next request to that URI, which I'm assuming the app wouldn't know how to handle.
So roughly the rule logic would have to be (I'm not in front of a box to test syntax so this is just an outline off the top of my head...)
when HTTP_REQUEST {
put URI back the way it should be
select pool member
put that selection in a variable
lookup that variable against an array of names
set another variable to hold the name
when HTTP_RESPONSE {
change URI to include name from previous variable
That's a lot of extra processing it seems.
Denny
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