Forum Discussion
Reverse Proxy using Cookie in iRule or Policy
- 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 } }
Yes, your understanding is correct!
I believe first option is more complex. I would try to insist for the second option.
Thank you so much for the quick reply, I’ll check with the team, how they would like to implement.
- spalandeApr 26, 2021Nacreous
Do you have any issues with iRule for option#1? Once you open the connectivity from F5 to external site on port 443, it should work. If you got any specific issues let us know.
In case you want to go ahead with option#2 of issuing a redirect to client. Below would be the iRule.
when HTTP_REQUEST { if { ( [HTTP::cookie exists Experience] ) } { HTTP::respond 301 Location "https://def.site.com/home" } else { return } }
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com