Hello
I am trying to configure Web Dispatcher to send traffic to a different internal server based on the URL entered. I am trying to use 'modification rules' to achieve this.
I have added the following to my profile:
icm/HTTP/mod_0 = PREFIX=/,FILE=C:\usr\sap\WPQ\SYS\profile\icm_filter_rules.txt
wdisp/system_0 = SID=AAA, MSHOST=192.168.1.32, MSPORT=8101
wdisp/system_1 = SID=BBB, MSHOST=192.168.1.31, MSPORT=8101
The contents of icm_filter_rules.txt:
if %{HTTP_HOST} regimatch aaa*
SetHeader x-sap-webdisp-target-sid AAA [break]
if %{HTTP_HOST} regimatch bbb*
SetHeader x-sap-webdisp-target-sid BBB [break]
RegForbiddenUrl ^/(.*) -
The result is that both URLs aaa.domain.com and bbb.domain.com both get routed to the first server, aaa.com / 192.168.1.32. I can't get bbb.domain.com to go to the BBB system / 192.168.1.31!
What could I be doing wrong please?
Cheers