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 } }
Sanjay, actually https://def.site.com/home is external url, so we don’t have any pool internally. Can I just remove only the pool part from the above iRule to forward to an external url ? Or is there any other condition to add ?
To forward to that destination without modifying a original URL, you need to add the pool or node.
I understand, you might not have a pool currently, but you would need to create a pool with the site IP address and enable routing (if needed) and open FW.
Alternatively, you can just send a redirect to a client to that external URL, but it would change the URL and your requirement is to keep the original URL intact in the browser if I understand it correctly.
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