Forum Discussion
zipperbox_11405
Nimbostratus
Jan 14, 2013Mulitple URL Replace and stream profile
I have a case where the internal naming of multiple servers have to be replaced by a single FQDN. I am succesful when dealing with one instance but not with many. Here is my current iRule, note: it s...
zipperbox_11405
Nimbostratus
Jan 16, 2013So this irule is very very close...
when HTTP_RESPONSE {
if { [HTTP::is_redirect] } {
HTTP::header replace Location "fqdn.com" }
else {
log local0. "Changing inside2.net location header"
HTTP::header replace Location "fqdn.com" }
}
But the header replace is almost doing to much... see the URL below following the replace. The trailing portion after "/players/" is being rewritten as well...
http://fqdn.com/Saba/Web_wdk/AFIILE/content/players/fqdn.com
This is what it should be...
http://fqdn.com/Saba/Web_wdk/AFIILE/content/players/SequencedPlayerRedirect.rdf?caller=&contextId=ctctx000000000001772&returnToCatalog=&callerId=&contentServerId=media000000000000002&contentFormat=SCORM&contentInventoryId=cninv000000000001048&startUserSession=&subscriptionId=ctnsr000000000001191&cfversion=1.3.1&isContentComplianceTestMode=
In wireshark this is what we see happening...
[truncated] GET http://fqdn.com/Saba/Web_wdk/AFIILE/content/players/redirect_content_url_new.rdf?contextId=ctctx000000000001772&subscriptionId=ctnsr000000000001191&contentInventoryId=cninv000000000001048&contentServerId=m
[truncated] GET http://fqdn.com/Saba/Web_wdk/AFIILE/content/players/SequencedPlayerRefresh.rdf?contextId=ctctx000000000001772&subscriptionId=ctnsr000000000001191&contentInventoryId=cninv000000000001048&contentServerId=med
GET http://fqdn.com/Saba/Web_wdk/AFIILE/content/players/fqdn.com HTTP/1.1\r\n - PROBLEM
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