cancel
Showing results for 
Search instead for 
Did you mean: 

Host Redirect

Former Member
0 Kudos

Hi,

My requirement is that the WAS should redirect to sales.mycompany.com every time a request to www.mycompany.com/sales/* is sent.

Is there anybody who know how to do this ?

We are in the process of moving one of our site and we have implementet our portal to handle this.

But we have not moved all applications from the old server.

We have a link called www.mycompany.com/sales/sales.exe

which was a destination on the old platform.

When we move the DNS of www.mycompany.com to our portal this link will no longer work. This of course needs to work. We have setup a new DNS pointing to the old platform sales.mycompany.com.

Best Regards

Rasmus

Accepted Solutions (0)

Answers (2)

Answers (2)

oliver_luik
Explorer
0 Kudos

Hi Rasmus,

you are right, the criteria for redirect handler in ICM and Web Dispatcher are currently only the protocol and the URL prefix. It is not possible to specify the host as a select parameter in current releases.

I will add this feature to the ICM/Web Dispatcher request list.

Kind regards,

Oliver

Former Member
0 Kudos

Hi Oliver,

Thank you very much, i currently have a request for this, so I'm happy that you have added my request.

Best Regards.

- Rasmus

Former Member
0 Kudos

Hi Rasmus,

We are facing the same situation.

Did you solve the problem?

Oliver,

Do you know in which release this will be added?

Best regards

former_member184154
Active Contributor
0 Kudos

Is that a J2EE or ABAP WebAS?

Former Member
0 Kudos

It's in the J2EE WAS

Br Rasmus

former_member184154
Active Contributor
0 Kudos

Well, I got something similar working, that my resemble your case.

1. create an alias with your J2EE Visual Admin, being /sales (look at "redirect" alias <a href="http://alegua.freeserverhost.com/tmp/1.jpg">here</a>)

2. let it point to the local fs, and to a simple html file containing something like the following:

<html><head/>
<body onLoad="javascript:window.location='http://google.it';"/>
</html>

3. when now pointing (in my machine) to http://localhost:50000/redirect I'm in google.

Maybe too simple for you, but should do the trick.

Let me know.

Alex

Former Member
0 Kudos

Hi Alex,

Thanks for your answer.

Unfortunately it is a bit to simple because my application needs parameters.

But i cooked up a solution that resembles.

I just retrieved the parameters and added them in the back.

I'm just amazied that the WAS is not able to setup a redirect for a host. the ISS does this with ease.

Br Rasmus

former_member184154
Active Contributor
0 Kudos

Rasmus,

> I'm just amazied that the WAS is not able to setup a

> redirect for a host. the ISS does this with ease.

Actually I'm not sure there's a more elegant way in WAS, and anyway WAS' main job is not to be an http server. I am sure IIS, from this standpoint, is more flexible.

Regards,

Alex

Former Member
0 Kudos

Maybe so but i also try the sap web dispatcher that we have in front of the was.

The wepdisp has a redirect property, but event here it can only redirect on prefixes.

The syntax is

icm/HTTP/redirect_<xx> = 
  PREFIX=<URL prefix>, 
  TO=<new URL prefix > [, PROT=<protocol>, HOST=<host>, PORT=<port number/name>]  

It is not able to check the host and prefix and the reroute to another host.

So in my case where i host several domains this doesn't work. Because all prefix must point to same host.

Br Rasmus.

Former Member
0 Kudos

If you are running a DNS server somewhere on your network it should be relatively simple to set up by mapping (a) records. If this is the case, let me know and I can help out.

Former Member
0 Kudos

To my knowledge DNS servers only maps DNS and IP.

DNS servers cannot reroute on prefix.

Br Rasmus