cancel
Showing results for 
Search instead for 
Did you mean: 

redirect outgoing url

martin_juen2
Contributor
0 Kudos
574

Hi,

I have the problem that one of our Z-Services doesn't redirect an url / request.

The situation:

An external portal calls our sap portal. The external portal has an url like this: https://x-portal.domain.com. Our portal has a completely different url which is blocked on the external portal. So we did a mapping on as java (HTTP Provider -> Proxy Mappings on each Java Dispatcher node) and on as abap (table httpurlloc). These actions work for 99% of all requests.

Only one thing is not working. We have a self written travel management ICF-Service. The service is working fine, but when using the print button, the url mapping for the outgoing data does not work.

The url of the sap portal is sent to the external portal in all cases. This server name is not allowed (external portal) and so the printable version of the travel request cannot be displayed.

To solve this problem i installed a Web Dispatcher with version 7.10 - this one is able to rewrite urls. The server list contains the as abap and as java). I activated the icm/HTTP/mod_0 parameter to be able to manipulate the url via file. Now i tried some settings and none of them worked :o(

Can anyone tell me how to rewrite the url correctly. I used the command RegIRewriteUrl but i am not completely sure that this is the one for me. The second question is how can i check if the settings are working? I tried via http watch on browser side and increasing the trace level of the web dispatcher but i didn't find something about the rewriting.

Thanks for your help!

Martin

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I did not really understand your configuration. What is the "external portal ? a SAP EP Portal ? an other portal ? a reverse proxy ?

I can only tell you that I have already used successfully the command RegIRewriteUrl with the SAP Web Dispatcher 7.2.

You cannot trace its action with HTTPWATCH because this is not a redirect and nothing happens on the browser but I could trace the rewrite in the web dispatcher trace file after increasing the trace level.

Regards,

Olivier

martin_juen2
Contributor
0 Kudos

Hi Olivier,

The external portal is a non SAP portal on customer side. They link the SAP portal, SSO is configured with sign on via Header Variable.

I also tried to raise the race level of the web dispatcher but were not able to see anything like a redirect. Maybe bad eyes 🐵

But i have an additional question: SAP documentation talks about redirecting incoming http requests before sending them to the server. In my case the answer of the request has an other hostname. Can it be that this case is ignored by the Redirect?

Thanks, Martin

Former Member
0 Kudos

Hi Martin,

It is possible to use redirects to a different host.

I use this technique to simplify URLs for my users.

For exemple, my users call http://sapportal to access SAP EP but the web dispatcher redirects them to the "technical" Portal URL :

https://hostname.domain.country/irj/portal

sapportal is a DNS alias of hostname.domain.country, but this proves that a web dispatcher can redirect on a different host.

Regards,

Olivier