Forum Discussion
Can I use an IRULE?
Hi Brett,
Just to recap, I tried the above irule on the HTTPS VIP, and custom http profile on both the HTTP/HTTPS VIP based on the default http profile with redirect rewrite to matching. This time the web-page is not working at all. Fiddler output says the following:
[Fiddler] ReadResponse() failed: The server did not return a complete response for this request. Server returned 0 bytes.
HTTP VIP irule
when HTTP_REQUEST { HTTP::redirect https://[HTTP::host][HTTP::uri] }
HTTPS VIP irule
when HTTP_REQUEST {
STREAM::disable
HTTP::header remove "Accept-Encoding"
}
when HTTP_RESPONSE {
Check if response type is text and host isn't null
if {[HTTP::header value Content-Type] contains "text" and $host ne ""}
{
Replace http://$host with https://$host
STREAM::expression "@http://$host@https://$host@"
Enable the stream filter for this response only
STREAM::enable
}
Rewrite the Location header in redirects to https://
if { [HTTP::is_redirect] && [string tolower [HTTP::header Location]] starts_with "http://$host"} {
HTTP::header replace Location [string map -nocase "http://$host https://$host" [HTTP::header Location]]
}
}
I get the same result with the default http profile on both VIPs. Kronos works fine from the backend Servers, (when we skip the F5) but everything is presented in HTTP. Is this a Kronos or F5 issue?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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