Ross_Fitheridge
Nov 09, 2007Nimbostratus
rewrite absolute URI to relative URI
we are having difficulty with a Virtual Server, that is configured for SSL server off-load. Most clients work, however we have one (the most important (of course) that comes through a Proxy). The Squid Proxy makes a call using an absolute URI with the protocol HTTPS: (https://www.company.com:8443/service), however the server only understands HTTP. The LTM is not translating the URI from https to http.
If I could just change the URI from https to http it would do the job.
I have attempted to rewrite the URI from an absolute to a relative URI, but this is not working. When I log the URI before and after it is still the same. The iRule I am trying follows:
Rule to modify absolute URI to relative URI
when HTTP_REQUEST {
set relativeUri "[URI::path [HTTP::uri]][URI::basename [HTTP::uri]][HTTP::query]"
HTTP::uri $relativeUri
}
I thought this was going to be simple, and I hope you are going to show me it is :-)