Friday 15 July 2016

HTTP Headers and Netscaler Response header rewrite



NetScaler Response header Rewrite

Create a rewrite policy -
1> The “action” selected below will be explained in the later section.
2> Expression can be used to select which response or request this policy should apply to.

add rewrite policy Replace_server_header true Replace_http_header_Server



3> Bind the above policy to a Load Balancing webserver
bind  lb vserver vserver_LB_SSL_UBU02 -policyName  Replace_server_header  -type RESPONSE
4> Add “Live HTTP headers” chrome extension

5> Browse your load balancing vserver from the chrome browser. .

6> Different types of actions have been note below with a screenshot of what they do to HTTP header.
Replace






Insert

Delete

Delete Full Header

Delete_HTTP_HEADER


Delete All

Insert_After

Replace_All
Insert After All

set rewrite action Insert_after_all -target "HTTP.RES.HEADER(\"Connection\")" -stringBuilderExpr "\"  Insert between Keep and Alive  \"" -search "regex(re~^Keep~)""

No comments:

Post a Comment