Forum Discussion
Gilles_Archer_3
Nimbostratus
Jul 02, 2014Rewriting Javascript w/o APM
Setup: BIG-IP 11.5.1 w/ LTM/AVR/AAM (note: APM is not licensed and currently disabled because it is not required)
We have a requirement to put a virtual server (SSL) in front of an Oracle User P...
Kevin_Stewart
Employee
Jul 02, 2014Not sure how far you've gotten with the STREAM profile approach, but that is probably your best approach.
when HTTP_REQUEST {
HTTP::header remove Accept-Encoding
STREAM::disable
}
when HTTP_RESPONSE {
if { [HTTP::header Content-Type] contains "text" } {
STREAM::expression {@realserver@server@}
STREAM::enable
}
}
You may need to fine tune this search-replace, but the idea is to replace any instance of realserver in the response with the external server name. If you need to also rewrite complex URI patterns, you may want to consider either the ProxyPass iRule (11.3 and below) and rewrite profiles in 110.4 and above).
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