Skip to Content
Feb 21, 2012 at 10:28 PM

Web Dispatcher 7.2 as Reverse Proxy for multiple SAP Enterprise Portals?


Hello, I seem to be missing something very simple, but can't seem to figure out what.

I'm doing a proof of concept where we have (1) web dispatcher server (let's call it WDS) and (2) portal servers.(EP1 and EP2). What I'm trying to do is very simple, based on the URL identified by WDS, go to either EP1 or EP2 and rewrite the URL accordingly.

In the WDS profile, I have:

wdisp/system_0 =, MSPORT=8100, SID=EP1

wdisp/system_1 =, MSPORT=8101, SID=EP2

wdisp/add_client_protocol_header = true

wdisp/add_xforwardedfor_header = true

icm/server_port_0 = PROT=HTTP,PORT=80

icm/HTTP/mod_0 = PREFIX=/,FILE=C:\test\icm_rules.txt

Then in the icm_rules.txt file I have:

if % RegIMatch* SetHeader x-sap-webdisp-target-sid EP1 RegIRewriteUrl ^/$ /irj/portal if % RegIMatch*

SetHeader x-sap-webdisp-target-sid EP2

RegIRewriteUrl ^/$ /webdynpro/resources/vp/VPApp

The problem is that the second RegIRewriteURL never executes. In other words, in my browser, when I enter, everything works as expected. But if I enter, it DOES route me to the proper server, EP2, but it doesn't perform the desired URL rewrite for that system, it performs the first URL rewrite, the one specified for EP1.

I know I'm missing something simple, but am stumped. I've tried adding the various options like [break], [skip], [compund], etc, but it didn't seem to have any affect or I'm not putting them in the proper place (although I've tried multiple locations).

It seems like it should work, but what am I missing? Bottom line, I'm trying to get:

- Enter URL should display and it does and is coming from EP1.

- Enter URL should display, but it does not, it displays

Any help would be appreciated!