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...
David_Tumlin
Nimbostratus
Jun 02, 2010I was playing with the ProxyPass rule initially because of the debug capabilities. A stripped down rule to perform what I am attempting is below. I am trying to modify the hostnames in URLs.
when HTTP_RESPONSE {
if { [HTTP::header exists "Accept-Encoding"] } {
HTTP::header remove "Accept-Encoding"
log local0. "$log_prefix: Removed Accept-Encoding header"
Disable the stream filter by default
STREAM::disable
Check if response type is text
if {[HTTP::header value Content-Type] contains "text"}{
Match any http:// instance and replace it with nothing
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]"
}
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