I try to configure the HTTP header insertion feature based on the action-list type modify http. Unfortunately it does not works.
The config looks like that
action-list type modify http TEST
header insert both Host header-value test:test.
I added this action-list to the correct policy-map.
When I checked the snifer output on the server side, there is no test value in the HTTP header.
I test the same feature based on the "insert-http" command in the policy-map and this one works.
Could anybody help me with this problem?
Thank you in advance
analyzing data requires time, cpu, memory ... resources.
So we try to only analyze a minimum of data.
Without persistence rebalance, once we have made our loadbalancing decision, we simply switch the traffic without looking into the data.
This is the best option to achieve best performance.
By configuring 'persistence rebalance' you forces ACE to inspect every request.
You'll get lower performance but since we inspect all request we are able to insert the header to each of them.
Instead of persistence-rebalance in your parameter map. Use header modify per-request in the parameter map. This introduces less overhead as we don't need to make a load balance decsion just insert the header.
Add a new parameter-map named PRMAP_PERST_REBLNC and add this to the policy map using command appl-parameter http advanced-options PRMAP_PERST_REBLNC as shown below:
action-list type modify http test-insert
header insert both My-Header header-value test
header insert both SSL header-value TRUE
policy-map type loadbalance http first-match HtppInsert
policy-map multi-match SLB1
loadbalance vip inservice
loadbalance policy HtppInsert
loadbalance vip icmp-reply active
loadbalance vip advertise active
loadbalance vip advertise metric 1
connection advanced-options SetTos
appl-parameter http advanced-options PRMAP_PERST_REBLNC
parameter-map type http PRMAP_PERST_REBLNC
Hope this will make all the packets are inserted with the http header not the first one only.
If it works then plz inform.
configure persistence rebalance with a parameter-map.