Forum Discussion

Arnfinn_Roland_'s avatar
Arnfinn_Roland_
Icon for Nimbostratus rankNimbostratus
Jun 17, 2011

ProxyPass v.10

Hello!

 

 

Upgraded a Bigip cluster from v.9.4 to 10.2 last night and found old faithful ProxyPass stopped working for us. So:

 

I'm moving from ProxyPass v.4 to v.10 and need to adapt some of the changes we had to do in the previous version.

 

The problem is related to useing escape characters in the stream expression.

 

By removing the conflicting line "@src=\"/@src="$bankid@ \" everything works. How can I escape the " character?

 

 

set stream_expression_cmd "STREAM::expression \"@http://$host_serverside$path_serverside@https://$host_clientside$path_clientside@ \

 

@$layouts@$bankid$layouts@ \

 

@$wpresources@$bankid$wpresources@ \

 

@src=\"/@src=\"$bankid@ \

 

@nettbank@000007@\""

 

 

 

 

Regards,

 

Arnfinn R.

 

 

 

 

2 Replies

  • Hi Arnfinn,

    Can you try this?

             set stream_expression_cmd "STREAM::expression \"@http://$host_serverside$path_serverside@https://$host_clientside$path_clientside@ \
             @$layouts@$bankid$layouts@ \
             @$wpresources@$bankid$wpresources@ \
             @src=\\\"/@src=\\\"$bankid@ \
             @nettbank@000007@\""
             log local0. "$stream_expression_cmd"
    

    Aaron
  • Thanks for the feedback!

     

     

    I'll sure give it a try to verify it solves the problem!

     

     

     

    I was in a rush to get this back up (lot's of banks) so I ended up changing the entire http_response section, like this:

     

    (very similar to my PPv4 section, stipped away a lot of error checks and logic though...)

     

     

    when HTTP_RESPONSE {

     

    if {1 != $bypass } {

     

    change if bypass is off

     

    STREAM::disable

     

    set layouts _layouts/images/

     

    set wpresources _wpresources/RadEditorSharePoint/

     

    if {[HTTP::header value Content-Type] contains "text" || [HTTP::header value Content-Type] contains "javascript"}{

     

    STREAM::expression "@http://$host_serverside$path_serverside@https://$host_clientside$path_clientside@ \

     

    @/$layouts@$bankid$layouts@ \

     

    @/$wpresources@$bankid$wpresources@ \

     

    @src=\"/@src=\"$bankid@ \

     

    @href=\"/@href=\"$bankid@ \

     

    @nettbank@000007@"

     

    STREAM::enable

     

    }

     

    }