cancel
Showing results for 
Search instead for 
Did you mean: 

rewrite hostname in http request with SAP Web Dispatcher

Former Member
0 Kudos

Hello Guru's,

is it possible to rewrite a http request like

http://hostname/irj/portal

to

http://hostname.domain.net/irj/portal

with sap web dispatcher? How we have to configure, if it possible.

In SAP Help we can't find a answer for this question and in forum nobody ask for this before.

Has someone any suggestions?!

Our web dispatcher version is 7.11.

regards

Chris

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Yes, I do it as explained by Andreas with the redirect directive.

I even use a DNS alias for the short URL.

When my users type http://sapportal the web disptacher sends a redirect to their browser to

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

So read the documentation for parameter icm/HTTP/redirect_<xx>, that is what you need.

Regards,

Olivier

Former Member
0 Kudos

Hello Olivier,

is it possible to post the icm/HTTP/redirect rule for your solution?

With our try's it dosn't work.

Thanks.

regards

Chris

Former Member
0 Kudos

Hello Christian,

Here is a simple exemple from a CRM system. There is even no web dispatcher, the redirect parameter is in the RZ10 DEFAULT profile.

icm/HTTP/redirect_0 =

PREFIX=/,FOR=hostname,TO=/sap/bc/bsp/sap/crm_ui_frame,HOST=hostname.domain.fr

When the users type

http://hostname

they are redirected to

http://hostname.domain.fr/sap/bc/bsp/sap/crm_ui_frame

Regards,

Olivier

Former Member
0 Kudos

Hello Oliver,

it looks like our entry...

icm/HTTP/redirect_0 = PREFIX=/, TO=/, FOR=ipt:*, HOST=ipt.domain.net

but my browser don't change to ipt.domain.net

regards

Chris

sivakumar_kilari3
Active Contributor
0 Kudos

Hi,

Add your server ip address and host name in your hosts file

ex: 192.168.10.10 hostname.domain.net

C:\ WINDOWS\system32\drivers\etc\hosts

Thanks

Siva

Former Member
0 Kudos

Hello Siva,

we use DNS.

regards

Chris

Answers (2)

Answers (2)

sivakumar_kilari3
Active Contributor
0 Kudos

Hi Chris,

> is it possible to rewrite a http request like

>

http://hostname/irj/portal

> to

>

http://hostname.domain.net/irj/portal

Add your server ip address and host name in your hosts file

ex: 192.168.10.10 hostname.domain.net

C: WINDOWSsystem32driversetchosts

What is your operating system?

What you are trying?

Thanks

Siva

Former Member
0 Kudos

Hello,

Client OS: WinXP + IE8

Server: SAP Web Dispatcher 7.11 + NW 7.0 with EP

Our problem is that the users could get a site from portal with http://hostname/irj/portal

But the cookies are from hostname.doman.net.

So if the user change to a link with FQHN he must login again.

We try to redirect the not full qualified hostname in the uri to a full qalified hostname.

regards

Chris

sivakumar_kilari3
Active Contributor
0 Kudos

> Client OS: WinXP + IE8

> Server: SAP Web Dispatcher 7.11 + NW 7.0 with EP

>

> Our problem is that the users could get a site from portal with http://hostname/irj/portal

> But the cookies are from hostname.doman.net.

> So if the user change to a link with FQHN he must login again.

> We try to redirect the not full qualified hostname in the uri to a full qalified hostname.

Every user needs to add this entry in their systems

FQDN ( web dispatcher server name.domain.net)

Add your server( web dispatcher server) ip address and host name in your hosts file

ex: 192.168.10.10 hostname.domain.net

C: WINDOWSsystem32driversetchosts

if you add this entry It will come like this : http://hostname.domain.net/irj/portal

Thanks

Siva

Former Member
0 Kudos

Hello,

i think we have solved.

with the following rule the redirect are correct.

icm/HTTP/redirect_0 = PREFIX=/,FROM=*,FOR=ipt,TO=/,HOST=ipt.domain.net

The FROM field must set for correkt funktion.

@Siva: If you had a correct DNS entry, you don't need the hosts file. Thanks anyway.

reagards

Chris

Former Member
0 Kudos

Maybe the parameter icm/HTTP/redirect_<xx> helps you?

Its just an idea, never tried it:

http://help.sap.com/saphelp_nw70/helpdata/en/00/040f3a39ce8704e10000000a114084/content.htm

Greetings

Andreas