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 = MSHOST=ep1.test.com, MSPORT=8100, SID=EP1
wdisp/system_1 = MSHOST=ep2.test.com, 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:
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 portal1.testnet.com, everything works as expected. But if I enter portal2.testnet.com, 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:
Any help would be appreciated!