Hello,
Question: How to properly set up a Local Traffic Policy to remove HTTP header named ‘Server’ on HTTP RESPONSE? Note that the Server header may or may not exist in the response. It’s an unversal policy for all Virtual Servers which also means the value for this header cannot be predicted. Can I set up a condition to trigger an action only if the header itself exists (without specifying any additional equals/starts-with/ends-with/contains as the Condition)?
In case of my current solution, all works fine, except that when the Server header is not present in response, an error message is logged to /var/log/ltm. It’s cosmetic but annoying due to high volume of errors.
.. irrelevant policy stuff (no conditions apply to action 0)
rule_remove-server-header {
actions {
0 {
http-header
response
remove
name Server
}
}
ordinal 2
}
Thanks,