Forum Discussion

zipperbox_11405's avatar
zipperbox_11405
Icon for Nimbostratus rankNimbostratus
Jan 14, 2013

Mulitple URL Replace and stream profile

I have a case where the internal naming of multiple servers have to be replaced by a single FQDN. I am succesful when dealing with one instance but not with many. Here is my current iRule, note: it seems to never hit on the second object.

 

when HTTP_RESPONSE {

 

 

if { [HTTP::is_redirect]} {

 

HTTP::header replace Location "[string map -nocase [list inside1.net fqdn.com] [HTTP::header value Location]]"

 

} else {

 

 

HTTP::header replace Location "[string map -nocase [list inside2.net fqdn.com] [HTTP::header value Location]]"}

 

}

 

 

Also; I have a stream profile applied to the VIP:

 

Source is blank.

 

Target: @inside1.net@fqdn.com@ @inside2.net@fqdn.com@

 

Any help would be much appreciated!

 

 

 

 

18 Replies