SAP Web Dispatcher Sample Configuration

 

Web Dispatcher system’s ICM rules file

icm_filter_rules.txt

if %{HTTP_HOST} = portal.companyweb.com [and]
if %{SERVER_PORT} = 80
RegRedirectUrl / https://portal.companyweb.com [CODE=temp] [break]

if %{HTTP_HOST} = fiori.companyweb.com [and]
if %{SERVER_PORT} = 80
RegRedirectUrl / https://fiori.companyweb.com [CODE=temp] [break]

if %{HTTP_HOST} = srm.companyweb.com [and]
if %{SERVER_PORT} = 80
RegRedirectUrl / https://srm.companyweb.com [CODE=temp] [break]

if %{HTTP_HOST} regimatch "portal.companyweb.com" [and]
if %{SERVER_PORT} = 443
SetHeader x-sap-webdisp-target-sid PRP [break]

if %{HTTP_HOST} regimatch "srm.companyweb.com" [and]
if %{SERVER_PORT} = 443
SetHeader x-sap-webdisp-target-sid SRP [break]

if %{HTTP_HOST} regimatch "fiori.companyweb.com*" [and]
if %{SERVER_PORT} = 443
SetHeader x-sap-webdisp-target-sid GFP [break]

if %{HTTP_HOST} regimatch "fiori.companyweb.com" [and]
if %{SERVER_PORT} = 1096
SetHeader x-sap-webdisp-target-sid GFD [break]

if %{HTTP_HOST} regimatch "portal.companyweb.com" [and]
if %{SERVER_PORT} = 1095
SetHeader x-sap-webdisp-target-sid PRD [break]

if %{HTTP_HOST} regimatch "portal.companyweb.com" [and]
if %{SERVER_PORT} = 1085
SetHeader x-sap-webdisp-target-sid HRP [break]

if %{HTTP_HOST} regimatch "portal.companyweb.com" [and]
if %{SERVER_PORT} = 2085
SetHeader x-sap-webdisp-target-sid HRD [break]

if %{HTTP_HOST} regimatch "portal.companyweb.com" [and]
if %{SERVER_PORT} = 1090
SetHeader x-sap-webdisp-target-sid ERP [break]

if %{HTTP_HOST} regimatch "portal.companyweb.com" [and]
if %{SERVER_PORT} = 1092
SetHeader x-sap-webdisp-target-sid ERQ [break]

if %{HTTP_HOST} regimatch "portal.companyweb.com" [and]
if %{SERVER_PORT} = 1091
SetHeader x-sap-webdisp-target-sid ERD [break]

if %{HTTP_HOST} regimatch "portal.companyweb.com" [and]
if %{SERVER_PORT} = 2222
SetHeader x-sap-webdisp-target-sid SOL [break]

if %{HTTP_HOST} regimatch "srm.companyweb.com" [and]
if %{SERVER_PORT} = 1090
SetHeader x-sap-webdisp-target-sid SRD [break]

if %{HTTP_HOST} regimatch "srm.companyweb.com" [and]
if %{SERVER_PORT} = 1091
SetHeader x-sap-webdisp-target-sid SRQ [break]

if %{HTTP_HOST} regimatch "srm.companyweb.com" [and]
if %{SERVER_PORT} = 1092
SetHeader x-sap-webdisp-target-sid SRP [break]

 

Author: