Forum Discussion
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