ProxyPass v10/v11
Problem this snippet solves: iRule to replace the functionality of Apache Webserver ProxyPass and ProxyPassReverse functions. Allows you to do hostname and path name modifications as HTTP traffic pa...
Published Mar 18, 2015
Version 1.0Kirk_Bauer_1018
Nimbostratus
Joined November 08, 2006
Kirk_Bauer_1018
Nimbostratus
Joined November 08, 2006
Jason_Adams
Jan 11, 2018Employee
The error message:
/Common/ProxyPass_LTMV12:119: warning: [unmatched closing character][}]
Tells us that the 'warning' is on line 119:
119 set serverside [string trimleft [getfield $ppass " " 2 ] "{" ]
120 set newpool [string trimright [getfield $ppass " " 3 ] "}" ]
So it's complaining about the curly brace in the string command. You can escape the curly braces to prevent that warning:
119 set serverside [string trimleft [getfield $ppass " " 2 ] "\{" ]
120 set newpool [string trimright [getfield $ppass " " 3 ] "\}" ]
Basic testing indicates that this syntax will not be a problem:
tclsh
% set astring {\{ this is a string}
\{ this is a string
% string trimleft $astring "\{"
\{ this is a string
% set astring "{this is a string"
{this is a string
% string trimleft $astring "\{"
this is a string
%
I have updated my above comment to reflect this change.