Forum Discussion
Simon_Waters_13
Cirrostratus
May 20, 2014When is HTTP_RESPONSE not fired?
I have a very boring iRule.
when HTTP_RESPONSE {
HTTP::header insert Strict-Transport-Security "max-age=31708800"
}
It works exactly as expected except...
For a VS using multi-domain ...
Kevin_Stewart
Employee
May 20, 2014The HTTP_RESPONSE is triggered for egress HTTP traffic through the box. The logon VIP in an APM multi-domain configuration doesn't trigger the HTTP_RESPONSE event because it handles all responses locally. Your best bet here, unfortunately, is to layer the APM logon VIP behind an LTM VIP that can see the HTTP response traffic from the APM VIP. You'd use a very simple iRule on the LTM VIP:
when HTTP_REQUEST {
virtual [name of APM VIP]
}
when HTTP_RESPONSE {
HTTP::header insert Strict-Transport-Security "max-age=31708800"
}
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