Forum Discussion

Reginald_Sible1's avatar
Reginald_Sible1
Icon for Nimbostratus rankNimbostratus
Sep 08, 2017

Netscaler re-write iRule

How would I create this netscaler re-write to an iRule?

 

add rewrite action Action-Rewrite-request_Path_replace_haiku-PRD replace "HTTP.REQ.URL.PATH.GET(1)" "\"Interconnect-HaikuPRD\"" add rewrite policy Policy-Rewrite-Requesst_Path_replace_Haiku-PRD "HTTP.REQ.URL.SET_TEXT_MODE(IGNORECASE).CONTAINS(\"haikuproxy\") || HTTP.REQ.URL.SET_TEXT_MODE(IGNORECASE).CONTAINS(\"wcf/Epic.Mobile.GeneratedServices/\")" Action-Rewrite-request_Path_replace_haiku-PRD

 

add rewrite action Action-Rewrite-request_Path_replace_proxy_quest-PRD replace "HTTP.REQ.URL.PATH.GET(1)" "\"Interconnect-Quest-SScripts-PRD\"" add rewrite policy Policy-Rewrite-Requesst_Path_replace_proxy_quest-PRD "HTTP.REQ.URL.SET_TEXT_MODE(IGNORECASE).CONTAINS(\"NcpdpReceiver.svc\") || HTTP.REQ.URL.SET_TEXT_MODE(IGNORECASE).CONTAINS(\"soapproxies\")" Action-Rewrite-request_Path_replace_proxy_quest-PRD

 

add rewrite action Action-Rewrite-request_Path_replace_Fitbit-PRD replace "HTTP.REQ.URL.PATH.GET(1)" "\"Interconnect-WSH-PRD\"" add rewrite policy Policy-Rewrite-Requesst_Path_replace_Fitbit-PRD "HTTP.REQ.URL.SET_TEXT_MODE(IGNORECASE).CONTAINS(\"wcf/Epic.PatientAccessTools.Services/PatientAccessTools.svc\")" Action-Rewrite-request_Path_replace_Fitbit-PRD

 

add rewrite action Action-Rewrite-request_Path_replace_ACR_PRD replace "HTTP.REQ.URL.PATH.GET(1)" "\"Interconnect-ACR-PRD\"" add rewrite policy Policy-Rewrite-Requesst_Path_replace_ACR-PRD "HTTP.REQ.URL.SET_TEXT_MODE(IGNORECASE).CONTAINS(\"acr-prd\")" Action-Rewrite-request_Path_replace_ACR_PRD

 

No RepliesBe the first to reply