hi
we have to redirect and rewrite urls to multiple systems using one web dispatcher.
but the redirection and the rewriting works for only for the first named 2 systems for currently 4 named systems.
this is how the profile of the web dispatcher looks like:
...
wdisp/system_0 = SID=B1D, MSHOST=abapdev, MSPORT=8120, SRCURL=/sap/
wdisp/system_1 = SID=B2D, MSHOST=portaldev, MSPORT=8141, SRCURL=/
wdisp/system_2 = SID=B1Q, MSHOST=abapqa, MSPORT=8121, SRCURL=/sap/
wdisp/system_3 = SID=B2Q, MSHOST=portalqa, MSPORT=8151, SRCURL=/
...
icm/server_port_0 = PROT=HTTP,HOST=webdisp,PORT=81$$
icm/server_port_1 = PROT=HTTP,HOST=localhost,PORT=81$$
icm/server_port_2 = PROT=HTTPS,HOST=webdisp,PORT=443
icm/server_port_3 = PROT=HTTPS,HOST=localhost,PORT=443
...
icm/HTTP/auth_0 = PREFIX=/, FILTER=SAP
icm/HTTP/mod_0 = PREFIX=/, FILE=/sapmnt/webdisp/global/security/data/icm_filter_rules.txt
...
wdisp/system_conflict_resolution = 1
this is how the modification handler file icm_rules.txt looks like:
if %{HTTP_HOST} RegIMatch "webdisp*" [and]
if %{PATH} RegIMatch "^/dev/irj/*"
SetHeader x-sap-webdisp-target-sid B2D
RegRewriteUrl ^/dev/irj(.*) /irj$1 [break]
...
if %{HTTP_HOST} RegIMatch "webdisp*" [and]
if %{PATH} RegIMatch "^/dev/sap/*"
SetHeader x-sap-webdisp-target-sid B1D
RegRewriteUrl ^/dev/sap(.*) /sap$1 [break]
...
if %{HTTP_HOST} RegIMatch "webdisp*" [and]
if %{PATH} RegIMatch "^/qua/irj/*"
SetHeader x-sap-webdisp-target-sid B2Q
RegRewriteUrl ^/qua/irj(.*) /irj$1 [break]
...
if %{HTTP_HOST} RegIMatch "webdisp*" [and]
if %{PATH} RegIMatch "^/qua/sap/*"
SetHeader x-sap-webdisp-target-sid B1Q
RegRewriteUrl ^/qua/sap(.*) /sap$1 [break]
...
we receive modified urls, e.g. /qua/irj/* or /dev/sap/* from our proxy and have to rewrite and redirect accordingly to the dev or qua backendsystems.
this only works for the dev systems at the moment. the redirection to qa systems doesn't work.
but the web dispatcher directs them to the type-matching system, means ABAP or portal of the dev systems.
so the rewriting works but not the redirection to the richt systems.
means requests to e.g. ABAP qa system B1Q goes to B1D.
highly appreciate any help