Michael_107360
Feb 11, 2014Cirrus
Overwrite Response Headers with existing pool selection irule
I have an application that direct's traffic to a one of 2 pools and the irule works perfectly
when HTTP_REQUEST { switch -glob [string tolower [HTTP::uri]] { "/ac" { pool V249.48-P31202 } "/client" { pool V249.48-P31203 } } }
Now they are having a problem as they are getting a 302 from the server for one URL and they want to overwrite the respone header as follows:
Change from Location: http://xyz.abc.com:31202/ac-fedmgr/affwebservices/public/saml2sso?SPID=AITTAC To https://xyz.abc.com/ac-fedmgr/affwebservices/public/saml2sso?SPID=AITTAC
I have no idea on how to add this to the existing IRULE if any one is out there please advise.