Forum Discussion
Kuerten_772
Feb 13, 2014Nimbostratus
APM Irule multiple access profile for one virtual server
Hello F5 Team,
i was asking if is possible to create irule to use multiple profile for one virtual, currently i have one access profile for one vs apm .
Thank you for your help.
Ahmed
Kevin_Stewart
May 01, 2014Employee
Semantically your code is correct, but the elseif needs to be on the same line as the if's closing bracket.
when HTTP_REQUEST {
if { [class match [string tolower [HTTP::uri]] starts_with landing_uri] } {
virtual [class match -value [string tolower [HTTP::uri]] starts_with landing_uri]
log local0.info "URI = [HTTP::uri] and 1st Virtual Match"
} elseif { [HTTP::cookie exists MRHSession] } {
if { [class match [ACCESS::session data get -sid [HTTP::cookie value MRHSession] session.server.landinguri] starts_with landing_uri] } {
virtual [class match -value [ACCESS::session data get -sid [HTTP::cookie value MRHSession] session.server.landinguri] starts_with landing_uri]
}
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects