DOC file getting Corrupted after download After Stream Profile Added to the VIP . Other Files extension like XLS , PDF are getting downloaded perfectly . Due to AJAX call failing we had to add Stream profile to rewrite the HTTP response to HTTPS . Without Stream Profile and iRule Everything works fine only AJAX call is failing .
Strange part is when we are typing the HTTP AJAX string on a separate Browser window it works . We have Both HTTP & HTTPS VIP .
Hi,
can you provide stream expression you applied to the VS?
this code manage absolute to relative URL conversion
when HTTP_REQUEST {
STREAM::disable
HTTP::header remove "Accept-Encoding"
switch [string tolower [HTTP::host]] {
"test1.com" -
"test2.com" -
"test3.com" {
HTTP::redirect https://www.[HTTP::host][HTTP::uri]
}
"www.test1.com" {
pool test1
set stream_expresion "@http://www.test1.com/@/@ @http://www.test3.com/@https://www.test3.com/@ @http://www.test2.com/@https://www.test2.com/@"
}
"www.test2.com" {
pool test2
set stream_expresion "@http://www.test1.com/@https://www.test1.com/@ @http://www.test3.com/@https://www.test3.com/@ @http://www.test2.com/@/@"
}
"www.test3.com" {
pool test3
set stream_expresion "@http://www.test1.com/@https://www.test1.com/@ @http://www.test3.com/@/@ @http://www.test2.com/@https://www.test2.com/@"
}
default {log local0. "No match found for [HTTP::uri]"}
}
}
when HTTP_RESPONSE {
if {[HTTP::header value Content-Type] starts_with "text"} {
STREAM::expression $stream_expression
STREAM::enable
}
}