Forum Discussion
SRS_87002
Sep 15, 2010Historic F5 Account
ProxyPass and Streaming profile on the same VS
Hi All,
I'm currently using Proxypass to rewrite the hostname/port which works perfectly fine. Now i have an additional requirement to rewrite some contents on the webpage, when add a new stream i-rule to the same VS , it doesn't seem to work..
Has anyone configured proxypass and a streaming i-rule on the same VS??
thanks in advance..
S.
- hoolio
Cirrostratus
Which version of LTM and the ProxyPass iRule are you testing? For ProxyPass v10, you'd need to set $static::RewriteResponsePayload to 1. If you want to customize the find/replace strings in addition to the ProxyPass datagroup definitions, you'd need to modify this section to append your new find/replace pair(s):Check if we're rewriting the response if {$static::RewriteResponsePayload} { Configure and enable the stream filter to rewrite the response payload Hide the command from the iRule parser so it won't generate a validation error when not using a stream profile if {$static::RewriteResponsePayload > 1} { set stream_expression_cmd "STREAM::expression \"@$host_serverside$path_serverside@$host_clientside$path_clientside@ @$path_serverside@$path_clientside@\"" } else { set stream_expression_cmd "STREAM::expression \"@$host_serverside$path_serverside@$host_clientside$path_clientside@\"" } set stream_enable_cmd "STREAM::enable" if { $static::ProxyPassDebug > 1 } { log local0. "$log_prefix: \$stream_expression_cmd: $stream_expression_cmd, \$stream_enable_cmd: $stream_enable_cmd" }
- SRS_87002Historic F5 AccountAaron, thank you for the tip.. it works great...
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