Forum Discussion
David_Tumlin
Nimbostratus
Jun 02, 2010Problem with Proxy Pass iRule
I am deploying a pair of LTMs to use as a reverse proxy in front of a SAP NetWeaver portal. I will probably be using the ProxyPass iRule to rewrite internal server addresses to Visrtual Server addres...
hoolio
Cirrostratus
Jun 02, 2010Can you remove the Accept-Encoding header from the requests? This prevents the server from sending compressed responses. And do you really want the client to make a request to the test VS on port 8020?
when HTTP_REQUEST {
if { [HTTP::header exists "Accept-Encoding"] } {
HTTP::header remove "Accept-Encoding"
log local0. "$log_prefix: Removed Accept-Encoding header"
}
}
when HTTP_RESPONSE {
Disable the stream filter by default
STREAM::disable
Check if response type is text
if {[HTTP::header value Content-Type] contains "text"}{
Set the replacement string
STREAM::expression {@URL=http://qj1cen00\.na\.\.net:8020/@URL=http://testvip..net:8020/@}
Enable the stream filter for this response only
STREAM::enable
}
}
when STREAM_MATCHED {
log local0. "Stream matched [STREAM::match]"
}
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