cancel
Showing results for 
Search instead for 
Did you mean: 

DNS Name to portal (short) URL

Former Member
0 Kudos
548

Hi folks,

we are going to integrate some webapplications via url-iview in our portal (2004s). The applications have there own dns-name within our domain-dns-server.

After the integration, my plan is that the dns will be resolved into a portal (short)URL. In IIS i can take the hostheader for this, but how is it possible in the portal?

best regards

Frank

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member698570
Active Participant
0 Kudos

Hi,

ok I finally got it

You will encounter the following problem:

If you configure your alias ABC to resolve to the IP Address of your portal there is no application associated with it (/xxx) so you will always call the index.html (J2EE Startpage of your J2EE)

What you can do here is modify the index.html to redirect to a specific destination using meta http-equiv="refresh"

e.g.

meta http-equiv="refresh" content="0;url=/irj/portal/

Since it is just HTML you cannot disinguish and you will always be redirected to this destination when accessing the startpage or just http://portalhost

Now you have several ways to solve this:

1. I think that you can define Virtual Hosts in the HTTP Provider Service (Visual Admin / HTTP Provider Service) and Application Aliases (I've never done that but it should work). This means that you define a virtual host (e.g ABC) and map it to any application e.g /myAPP1 on your J2EE

see the following doc:

http://help.sap.com/saphelp_nw70/helpdata/EN/e5/ac55423948b330e10000000a155106/frameset.htm

2. You can change the Directory Index of your Engine (HTTP Provider / Properties TAB / Infer Names Property) and add something like index.jsp to the list

Default Value is:

{index.html,index.htm,default.html,default.htm}

Then you rename your index.html to something like startpage.html and put the index.jsp in the directory instead. In your JSP you will then be able to parse the Request (e.g. parse the Request URL, Headers etc. and send an appropriate redirect that fits your needs.) In all other cases you just send a redirect to startpage.html so you will still be able to see the Startpage if necessary

You have to put this jsp in the following path:

/usr/sap/<SID>/JC<InstanceNo>/j2ee/cluster/serverN/apps/sap.com/irj/servlet_jsp/irj/root

Note that if you are just typing

http://ABC and ABC will be resolved to your portal IP you will have to bind your portal to port 80 in order to make this work (I would not do that because you will get into trouble when upgrading or patching) or you will have to provide the port e.g. http://ABC:50000

If you do not want to provide the port than you will have to put a Proxy (e.g. IIS on the portal host that listens on port 80 and does whatever you like (e.g. parses HTTP Header and sends redirect or whatever)

Hope this helps

Cheers

former_member698570
Active Participant
0 Kudos

Hi,

I don't really understand what you are trying to achieve. Could you explain in more detail?

What do you mean with:

"the dns will be resolved into a portal (short)URL"

What I understnad so far is the following:

You have a portal and three applications that reside on a different host (not J2EE)

Each of these applications are available via a differnt DNS name

e.g.

app1.domain.com

app2.domain.com

app3.domain.com

And you want to integrate them via URL-iview?

Why don't you just create one iView per Application so you will have three links in your portal and each link leads to a different application

Cheers

Former Member
0 Kudos

Hi Marcel,

thx for response.

today we have one webapplication eg. ABC, there is a DSN-entry ABC which holds the ipadress xxx.xxx.xxx.xxx. In the browser i write http://abc get the ip-response from dns and will be routed to application(server).

in future, when i write http://abc i will be routed to http://portal/shorturl(abc)

i hope this describes my problem better.

regards Frank

former_member698570
Active Participant
0 Kudos

Hi again,

today we have one webapplication eg. ABC, there is a DSN-entry ABC which holds the ipadress xxx.xxx.xxx.xxx. In the browser i write http://abc get the ip-response from dns and will be routed to application(server).

but ABC is the name of your host (e.g. myapp.domain.com). The DNS can only resolve Hostnames to IP Adresses and vice versa if configured. If ABC is not your hostname than the only way this can work is that there is a Proxy involved that is configured to route you to your desired destination!

Do you have a proxy or reverse proxy which is involved in your scenario?

in future, when i write http://abc i will be routed to http://portal/shorturl(abc)

Again: If abc is a full qualified hostname or just hostname I guess that your IP is just switched to another hostname in DNS. If abc is not the hostname then it probably means that there is a reverse proxy involved and your reverse proxy just passes the original request to http://portal/shorturl(abc)

Is that correct?

I'm really trying to understand your problem so I can assist you in finding an appropriate solution.

Cheers

Former Member
0 Kudos

Hi,

okay in detail

- there is no proxy

- dns-server:

in forward-lookupzone there is our domain-name

in the domain-structure there is name ABC; type Alias(CName) and Data fullqualifiedservername like servername.domainname

there another entry where

name hostname like servername, type Host(A) an Data IP-Adress

so, this means to me, when i write ABC into the browseradress, after looking in hosts and dns-cache, my

request goes to the dns server, comes back with the fqn of the server, goes back to dns asks for the host and gets back the ip-adress from the application server.

now my browser "goes" to the host and still knows that my requst was http://abc and the e.g. iis routes me to my webapplication.

in future i change the "dns-entry to the ip of the portalserver" and hope that there is a way to read the request (http://ABC) and this will be routed to http://portal/shorturl.

Now when i read my question, i think, i have an answer. I will install an iis at host of the portalserver. In iis i will take the request (host header), make a web, which solved the hostheader and opens a html-page which redirects my to the shorturl.

That it?

regard Frank

Former Member
0 Kudos

Frank,

You just need to create a redirect app and replace it with your old app (http://abc). The redirect app just redirects http://abc request to your portal app.

-Regards

RK