cancel
Showing results for 
Search instead for 
Did you mean: 

SAP webdispatcher and URL redirect?

wolfgang_haerle
Explorer
0 Kudos

Hi,

I just installed SAP web dispatcher with the purpose of using it (similar to saprouter for sapgui) as single point of entry for all http(s) requests to our SAP systems.

I configured parameters icm/HTTP/redirect_x to accomplish that but to only limited success:

How do I have to set this parameter if I want to accomplish a redirect of the web dispatcher URL (1) to the webgui service running on system ECC (2)?

Example:

1. web dispatcher URL:

http://sapwebdisp:85/ECC/webgui (should be routed to url:)

2. http://saperpecc:8001//sap/bc/gui/sap/its/webgui/!

Is this posssible at all?

Thanks for any hints and tips in advance!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

For redirect (when your client browser will be asked to go to a new URL), below should do, though it is better to use FQDN, like sapwebdisp.corp.com


icm/HTTP/redirect_0 = PREFIX=/ECC/webgui, FOR=sapwebdisp:85,
FROM=*,TO=/irj/portal,HOST=saperpecc,PROT=HTTP,PORT=8001

If you want your client to see http://sapwebdisp:85 URL in the browser, but actual content of http://saperpecc:8001//sap/bc/gui/sap/its/webgui, this would be URL forwarding/routing.

In this case you need to use parameter

wdisp/server_info_location = info.icr

to point to ecc host

and also

icm/HTTP/redirect_0

to manipulate prefixes ECC/webgui -> sap/bc/gui/sap/its/webgui/ .

Regards,

Slava

wolfgang_haerle
Explorer
0 Kudos

Slava,

thanks for your response. Just one question, you are saying that parameter TO should be '/irj/portal'? Is this correct? I assume you meant '/sap/bc/gui/sap/its/webgui' ? Also do you have an example of how the info.icr file should look like?

Thanks for your help!

Former Member
0 Kudos

You are correct, it shoudl be

TO=sap/bc/gui/sap/its/webgui/

(my typo)

Example of icr file could be:


Version 1.0
ECC
J2EE saperpecc 8001 DIA=1

Only hostname and port are critical, since you are not doing load balancing on this web dispatcher.

Regard$,

Slava

wolfgang_haerle
Explorer
0 Kudos

Slava,

I assume URL redirect means that you still have to open the ports you redirect to in the firewall while with URL forwarding this would no be the case. Is this correct?

Thanks.

Answers (2)

Answers (2)

Ayax
Participant
0 Kudos

You are rigth, instead of /irj/portal should be /sap/bc/gui/sap/its/webgui. You could also use httpurlloc table in ECC instead of info.icr file.

Regards,

Ayax

michael_mulvey
Employee
Employee
0 Kudos

Hi

The parameter has the following syntax:

icm/HTTP/redirect_<xx> = PREFIX=<URL prefix>[, FROM=<pattern for URL>, FROMPROT=<incoming protocol>, FOR=<pattern for host name:port>,TO=<new URL prefix>, PROT=<protocol>, HOST=<host>, PORT=<port number/name>]

<xx> must be specified in ascending order from 0.

Optional Parameters

With the optional parameters FROM, FROMPORT and FOR

So your example the parameter would be:-

icm/HTTP/redirect_0 = PREFIX=/,FROM=/ECC/webgui,TO=/sap/bc/gui/sap/its/webgui/!

One point to note is that the URL you have provided has a double slash after the Hostname and Port which might be the root of your problem.

http://saperpecc:8001//sap/bc/gui/sap/its/webgui/!

Another point to note. If you are having problems with redirection via HTTP then HTTPwatch (basic version is freeware) can be used to check how requests are being directed. You can use this for testing your redirects.

Hope this helps.

Michael

Edited by: Michael Mulvey on Nov 11, 2008 5:27 PM

wolfgang_haerle
Explorer
0 Kudos

Michael,

thanks for your reply and don't worry about the double slashes (just a typo). I did not see the PORT parameter used in your example, I assume this is an oversight? Is there a difference between the PREFIX and the FROM parameter or why are you suggesting to use FROM?

Thanks!