Hi 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