Forum Discussion
eric_haupt1
Nimbostratus
Apr 15, 2019APM VPE Top left logo - any way to dynamically change it per host?
I have a large VPE that I'm splitting across two sharepoint teams using session.server.network.name and two branch rules. Each SP team has a respective logo/badge for their SP sites for their team. I...
iaine
Nacreous
Apr 16, 2019Hi
As long as you have got a way to distinguish which team is accessing APM prior to presenting them with a login page then you can change the logo as you need to. For instance, you mention that you are using variable session.server.network.name to split up your policy. Using this variable you could deploy code such as this to intercept the call for the logo on the login page and display a different image.
when CLIENT_ACCEPTED {
ACCESS::restrict_irule_events disable
}
when HTTP_REQUEST {
looks for calls to the logo image
if {[HTTP::uri] equals "/public/images/my/flogo.png"}{
if {[ACCESS::session data get "session.server.network.name"] eq "test.domain.com"}{
HTTP::respond 200 content [ifile get "uri1_image"]
} elseif {
[ACCESS::session data get "session.server.network.name"] eq "another.domain.com"}{
HTTP::respond 200 content [ifile get "uri2_image"]
}
}
}Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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