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.

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"
      }

If you want more specific steps, can you confirm the versions you’re working with and what in concept and when you’re trying to do the response content rewriting?

Aaron

Aaron, thank you for the tip.. it works great…

s.