Forum Discussion
What_Lies_Bene1
Apr 23, 2013Cirrostratus
Odd. OK, how about this (I've removed some double quotes and used a length rather than / for the terminator with the second findstr command);
when HTTP_REQUEST {
set newuri [findstr [HTTP::uri] "/" 5]
log local0. "Original request is: [HTTP::host][HTTP::uri]"
log local0. "New URI is: $newuri"
set newport [findstr [HTTP::uri] "/" 0 4]
HTTP::uri "$newuri"
log local0. "New Port is: $newport"
HTTP::header replace Host "[HTTP::host]:$newport"
if { $newport ne "" } {
Use the relevant Pool
pool pool_$newport }
else {
log local0. "Newport Variable was empty"
}
}