Forum Discussion
Jeff_Tuthill_10
Nimbostratus
Nov 25, 2008URL Change
I have an open source application, similar to Sharepoint, that build URL's on the fly. I have an SSL cert on the F5 to make it https://, but the server is clear, http://. For some reason, one of the l...
hoolio
Cirrostratus
Nov 26, 2008Hi Jeff,
Can you use a browser plugin like Fiddler for IE or HttpFox for FF to see what the server is actually sending back in response headers and/or the body?
You can rewrite the URI, but it might be cleaner to figure out why the response rewriting isn't working. The find/replace strings might be wrong. Or the server might be compressing the response content. LTM doesn't decompress the response content when applying the stream filter so it wouldn't be rewritten.
If you do want to rewrite the URI, you can use the same string map command with HTTP::uri:
when HTTP_REQUEST {
Check if URI starts with //mysite.com
if {[HTTP::path] starts_with "//mysite.com"
Replace //mysite.com with / in the path
HTTP::path [string map {//mysite.com /} [HTTP::path]]
}
}
Aaron
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
