Forum Discussion
irule to just enable APM for one subsite - not working
Just trying to create an irule to enable APM for one of the subsites and disabled for the others. It works fine if no irule and the all the sites work fine going through the forms APM login. When I add the irule below all the other subsites work fine and do not go through APM. The subsite where APM is anabled allows me to got through APM and login into form but returns the following URL instead of /beergame and everytime I try to go to /beergame i get the error below. Any idea?
Here is the irule:
when HTTP_REQUEST {
# Enable APM for BeerGame
if {[HTTP::path] starts_with "/beergame/"} { ACCESS::enable } else { ACCESS::disable }
}
irule to enable apm on subsIte but get this error:
https://"mydomain"/F5Networks-SSO-Resp?SSO_ORIG_URI=aHR0cHM6Ly9xYWFwcHNleHQuaGtzLmhhcnZhcmQuZWR1L2JlZXJnYW1lLw%3d%3d&TOKEN=dfd5df21
- millerchEmployee
Are you intentionally doing multi-domain SSO here?
- Shawn_ConwayCirrus
interesting Chris if I change it to single domain it works. I forget why i use multi domain, think we had issues with single domain. i changed it to single domain and made the cookie with a wildcard *.domainname and will test it out in QA. But cant change prod for this, so do you think there is a work around for multidomain? I did add the domain for that DNS of that app. We have a list about 10 and all other work fine but this is the only one with this irule. Thank You!
- Chris_MillerAltostratus
I accidentally used my auto-generated F5 DevCentral account for the previous answer, lol. Figured I'd switch to this one. Anywho, I'm guessing we're trying redirect to the primary auth URI but your iRule might be disabling APM for that URI which could be breaking things. Just a guess.Just to test, can you also ACCESS::enable for starts_with "F5Networks" and see how it looks?
- SajidCirrostratus
try this
when HTTP_REQUEST {
if {( [HTTP::uri] starts_with "/yourURI" ) } {
log local0. "APM Enabled for URI [HTTP::uri]"
return
} else {
ACCESS::disable
log local0. "APM Disabled for [HTTP::uri]"
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