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...
Kai_Wilke
MVP
Apr 17, 2019Hi Eric,
I agree with with Stanislas that
ACCESS::restrict_irule_events disable may have certain side effects.
I would rather than change the image path based on a custom APM session variable. The value of the session variable would be set during the
ACCESS_SESSION_STARTED event.
when ACCESS_SESSION_STARTED {
set apm_policy_name "/Common/MyPolicy"
switch -glob -- [string tolower [HTTP::host]] {
"site1.domain.de" {
ACCESS::session data set "session.custom.logo" "/public/images/customization${policy_name}_general_ui/image01_en.png"
}
"site2.domain.com" {
ACCESS::session data set "session.custom.logo" "/public/images/customization${policy_name}_general_ui/image02_en.png"
}
default {
ACCESS::session data set "session.custom.logo" "/public/images/customization${policy_name}_general_ui/image00_en.png"
}
}
}
The required change to the
header.inc file via "Advanced Customization" would be:
...
...
After that you could upload your default and site specific logo images to APMs "Advanced Customization Images" via the "General Customization" functionality. Image00 would be the new default image and image01 etc. are the site specific logo images.
Cheers, Kai
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