cancel
Showing results for 
Search instead for 
Did you mean: 

Webdispatcher - Maintain URL Filter and Modification Handler

Private_Member_19084
Active Contributor
0 Kudos

Hi experts,

I would like to maintain a modification rule in our webdisptacher, as I want to route to more SAP-Systems.

But in the UI the rules are empty and also the field "Name of rule File": is empty.


Where do I have to define the rule file?

Further I also want to make a URL-File, only to permit defined URLs.

Where can I maintain this?

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos
Private_Member_19084
Active Contributor
0 Kudos

Thank you for your help.

Answers (3)

Answers (3)

Private_Member_19084
Active Contributor
0 Kudos

Got the answer from SAP

in the filer rule it must be

RegForbiddenUrl ^/(.*) -

instead of

RegForbiddenUrl ^/(.*)

Private_Member_19084
Active Contributor
0 Kudos

Hi all,

I've now done the upgrade to 7.41.

But it still want work.

Modification rule file seems to be loaded correctly.
Further in web-administration I can see the SIDs


In trace I get the following error:

[Thr 3632] *** ERROR => IcrFindTargetSystem() failed for request <webpage after />.

[http_plg.c 9313]

[Thr 3632] *** ERROR => No target SAP system for

request {0004000c} [http_route.c 2550]

divyanshu_srivastava3
Active Contributor
0 Kudos

Hi,

Check this thread;

Divyanshu

Private_Member_19084
Active Contributor
0 Kudos

Thx, but I think it is another issue.

1st it is not java.

second in Web UI it is displayed green - so connection should be ok, I think.

Private_Member_19084
Active Contributor
0 Kudos

btw, if I maintain rdisp/mshost and ms/http_port directly, it works.

But if I use the modifciation rule with

wdisp/system_0 = SID=<sid>, MSHOST=<host>, MSPORT=<port>

and rule

if %{HTTP_HOST} regimatch <aliase>*

SetHeader x-sap-webdisp-target-sid <sid> [break]

it don't want to work

Private_Member_19084
Active Contributor
0 Kudos

If I only call the host name (fqn) of the web dispatcher, I get the following reject:

[Thr 1812] *** ERROR => IcrFindTargetSystem() failed for request /.

[http_plg.c 9313]

[Thr 1812] *** ERROR => No target SAP system for

request {00000006} [http_route.c 2550]

Should it not be the hostname instead of the "/" after request?

Private_Member_19084
Active Contributor
0 Kudos

Does nobody have an idea?

divyanshu_srivastava3
Active Contributor
0 Kudos

Hi Christian,

Is it just with FQDN ?

Did you try with hostname only ?

Also, did you check :

https://help.sap.com/saphelp_nwce72/helpdata/en/c5/ec466f5544409982c7d3ca29ce1ad3/content.htm

https://help.sap.com/saphelp_nw73/helpdata/en/1b/b0fd8a12344c4ca89b7a1c5d1d7310/content.htm

You should also update host file and services file in windows--system32--drivers--etc for any remote system called.

Divyanshu

Private_Member_19084
Active Contributor
0 Kudos

Thanks for the links, I made the config already based on this.

however, I think the modification file is not found.

It is confusing, what is the real syntax:

At the moment I use this:

icm/HTTP/mod_0 = PREFIX=\, FILE=$(DIR_PROFILE)\icm_filter_rules.txt

(Prefix / does not work, maybe because of Windows, but I don't know).

But in the webui ->Modification Handler->name of rule file is "-" and the path to the file is written in prefix.

But this is the syntax, as it is written in the sap-docu, or not?

Kind regards

Private_Member_19084
Active Contributor
0 Kudos

I've opened a SAP-Ticket.

Private_Member_19084
Active Contributor
0 Kudos

One further question.

I tired now to make a modification rule, but it didn't work.

The routing seems to be wrong.

At the moment I have a config file which includes the server entries:

rdisp/mshost = <hostname>

ms/http_port = 81<sidno>

And on entering the dispatcher host the forwarding to the sap-service runs perfect.

Now I would like to make a modification rule, based on different Aliases, so that I can attach more SAP-Systems to the dispatcher.

Therefore I did create the modification file:

if %{HTTP_HOST} regimatch www1*

SetHeader x-sap-webdisp-target-sid <sid1> [break]

if %{HTTP_HOST} regimatch www2*

SetHeader x-sap-webdisp-target-sid <sid2> [break]

RegForbiddenUrl ^/(.*)

Further in the config I removed rdisp/mshost and ms/http_port and included the following:

wdisp/system_0 = SID=<sid1>, MSHOST=<host1>, MSPORT=81<sidno1>

wdisp/system_1 = SID=<sid2>, MSHOST=<host2>, MSPORT=81<sidno2>

But on entering www1 I get an error message, what is the problem here?

Thank you

Private_Member_19084
Active Contributor
0 Kudos

may it depend on the release, we are having 7.11

0 Kudos

Indeed. Support for multiple systems was introduced with Web Dispatcher release 7.20.

Private_Member_19084
Active Contributor
0 Kudos

Now I found thefollowing in the trace:

WARNING => IcmParseSubParam: unknown subparam "MSHOST" for parameter:

Mayit be, that in the old version it was another naming? Like HOST?