Forum Discussion
Dec 30, 2014
irule to redirect traffic as well as changing the URL
We currently have a test environment where our web developers like to have the servers configured like our PROD servers. We currently have a setup in PROD where we have a Microsoft ISA performing re...
Jan 06, 2015
Thanks for all of the responses. I was able to get it to work. Here is the irule that I am using that works.
when HTTP_REQUEST {
STREAM::disable
LTM does not uncompress response content, so if the server has compression enabled
and it cannot be disabled on the server, we can prevent the server from
sending a compressed response by removing the compression offerings from the client
HTTP::header remove "Accept-Encoding"
log local0. "Host: [HTTP::host]"
if { [string tolower [HTTP::host]] equals "www.abc.com.int.xyz.com"} {
HTTP::header replace "Host" "www.abc.com"}
pool POOL1
log local0. "Setting Pool: POOL1"
}
when HTTP_RESPONSE {
Check if response type is text
if {[HTTP::header value Content-Type] contains "text"}{
Replace http:// with https://
STREAM::expression {@www.abc.com@www.abc.com.int.xyz.com@@www.def.com@www.def.com.int.xyz.com@}
Enable the stream filter for this response only
STREAM::enable
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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