Forum Discussion
Help with APM irule to append URI and URL to call to kill individual sessions
Hi,
If you want to redirect first request after authentication, you can use a variable assign with:
session.server.landinguri = expression expr{ "/static/static/static/[mcget {session.saml.last.attr.name}]" }
It will force to redirect the user to this url after succeded authentication
If you want to redirect for any request on / URL, you can use following irule
when ACCESS_ACL_ALLOWED {
if { [HTTP::path] == "/" } {
ACCESS::respond 302 noserver Location "/static/static/static[ACCESS::session data get "session.saml.last.attr.name"]"
}
}
Thanks Stan. When I try adding the variable assign I get a page can't be found and I don't see the URI appended in my browser. When I use the Irule i see the redirect in the browser but I still get a page can't be found. I'm thinking because of the DNS loop and the URL being tied to VIP #1.
- Michael_WaechterJun 20, 2023Employee
You will have to apply the select virtual after the apm policy processing. Since the VIP #2 does not have a dns entry, you will need to force it through via an irule to select the virtual after processing. Personally I'd recommend adding a dns entry, and make it simple, but you can do it in an irule to forcefully select the virtual.
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