Skip to end of metadata
Go to start of metadata

Any attribute of an incoming HTTP request (like header fields, cookies, or URI) can be used as a request routing critiera by a modification handler script setting the pseudo-header x-sap-webdisp-target-sid.

For this approach the wdisp/system SID subparameters have to be unique! If they are not unique, the wdisp/system subparameter NAME and the pseudo header field X-SAP-WEBDISP-TARGET-SYSTEM has to be used.


Example:

wdisp/system_0 = SID=YI3, NAME=MYERP, SRCURL=/, ...         (;o=YI3)

wdisp/system_1 = SID=ALX, NAME=MYHDB, SRCURL=/, ...        (;o=ALX)

 

Rewrite rules:

if %{PATH} regimatch ";o=YI3"

SetHeader X-SAP-WEBDISP-TARGET-SID YI3

if %{PATH} regimatch ";o=ALX"

SetHeader X-SAP-WEBDISP-TARGET-SID ALX

 

If the Web Dispatcher versions supports the wdisp/system attribute "NAME" (>= 745), the pseudo header field X-SAP-WEBDISP-TARGET-SYSTEM can be used.