{"id":622,"date":"2011-12-23T12:37:45","date_gmt":"2011-12-23T12:37:45","guid":{"rendered":"https:\/\/fir3netwp.gmsrrpobkbd.com\/2011\/12\/23\/brocade-adx-content-switching-rewrite\/"},"modified":"2021-07-24T18:22:10","modified_gmt":"2021-07-24T18:22:10","slug":"brocade-adx-content-switching-rewrite","status":"publish","type":"post","link":"https:\/\/www.fir3net.com\/Loadbalancers\/Brocade\/brocade-adx-content-switching-rewrite.html","title":{"rendered":"Brocade ADX – Content Switching Rewrite"},"content":{"rendered":"
A typical issue when SSL termination is performed on the load balancer is that URL redirects from the backend servers still contain a ‘http:\/\/’ prefix rather then ‘https:\/\/’<\/p>\n
Within this article we will show the required commands for creating a Content Switching Policy that will rewrite any URL`s containing a ‘http:\/\/’ prefix to ‘https:\/\/’ for traffic originating from the backend servers. This is also known as a reverse rewrite.<\/p>\n
csw-rule “bodyhttp” response-body pattern “http:\/\/”
csw rule “redirection” response-header “Location” pattern “http:\/\/”
csw-rule “responsestatus” reponse-status-code 301 302
csw-rule “urlexists” url exists<\/p>\n
csw-policy “rewritehttp” type reponse-rewrite
match “urlexists” response-body-rewrite
match “responsestatus” reponse-header-rewrite
match “rediretlocation” rewrite response-header-replace “https:\/\/” offset 0 length 7
match “bodyhttp” rewrite reponse-body-replace “https:\/\/” offset 0 length 7<\/p>\n
server virtual XXX
port ssl response-rewrite-policy “rewritehttp”<\/p>\n","protected":false},"excerpt":{"rendered":"
A typical issue when SSL termination is performed on the load balancer is that URL redirects from the backend servers still contain a ‘http:\/\/’ prefix rather then ‘https:\/\/’ Within this article we will show the required commands for creating a Content Switching Policy that will rewrite any URL`s containing a ‘http:\/\/’ prefix to ‘https:\/\/’ for … Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"yoast_head":"\n