Forum Discussion

MohanK's avatar
MohanK
Icon for Altostratus rankAltostratus
Apr 21, 2021
Solved

Reverse Proxy using Cookie in iRule or Policy

Hello,   We need to add below irules/policy for google cloud reverse proxy:   1. The application will drop a cookie on the first request of https://abc.site.com 2. The LTM needs to detect t...
  • SanjayP's avatar
    Apr 21, 2021

    Create a pool for Google Cloud destination. Modify iRule with pool name accordingly.

    when HTTP_REQUEST {    
        if { ( [HTTP::cookie exists Experience] ) } {
         HTTP::header replace "Host" "def.site.com"	
         HTTP::uri /home
         pool def.site.com_pool	 
        }  else {
    	 return
    	}      
    }