cancel
Showing results for 
Search instead for 
Did you mean: 

Two Urls for the same portal server

former_member189631
Active Contributor
0 Kudos

Hi,

I have to access the same portal server for the two diffent url links.

This is required for me to have two different logon pages for the portal for completely different urls.

Please share your ideas here!

Ram

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

have u read this blog?

Thanks,

GLM

former_member189631
Active Contributor
0 Kudos

Thanks for your promt replies!.

I already read the blog that you have mentioned!

I can do coding in logon page jsp to differenciate 2 urls and display the different logon pages based on the urls.

But my question is I have to have 2 completly different Urls which should refer the same logon page. How to acheive this.

Ram

srinivas_sistu
Active Contributor
0 Kudos

Hi,

say for example

your one URL is

x.hostname:portno/irj/1stURL

and the second URL is

x.hostname:portno/irj/2ndURL

and maintain two umLogonPagedefault.jsp with names,

umLogonPage1stURL.jsp and umLogonPage2ndURL.jsp and do the necessary coding you want inside the JSPs.

Now, umLogonPage.JSP is the JSP file responsible for determinig your portal URL to open when user wants to enter into portal. So Open that JSP(umLogonPage.JSP) and do like this:::

<%

String strReqURL = request.getRequestURL().toString()==null?"" : request.getRequestURL().toString() ;

%>

<%

if ( strReqURL != null && strReqURL.endsWith("/1stURL"))

{

%>

<%@ include file="umLogonPage1stURL.jsp"%>

<%

}

else if ( strReqURL != null && strReqURL.endsWith("/2nuURL"))

{

%>

<%@ include file="umLogonPage2ndURL.jsp"%>

<%

}

%>

Regards,

Srinivas.

former_member189631
Active Contributor
0 Kudos

Thanks Sreeni!

You are correct, it possible to have the urls like as you mentioned.

x.hostname:portno/irj/1stURL

and the second URL is

x.hostname:portno/irj/2ndURL

As per my requirement the hostnames should be different.

Example:

Url1: myhost1:50000/irj/portal

Url2: myhost2:50000/irj/portal

I need to refer the same logon par file if access the portal using anyone of the url.

Any ideas?

Ram

srinivas_sistu
Active Contributor
0 Kudos

Hi,

Gnrlly when ever user wants to login to portal what will happen is

inside LogOn.PAr, first umLogonPage.JSP will be called. By default there will be no If conditions inside. So from umLogonPage.JSP control will get redirected to umLogonPageDefault.JSP, where you will have your normal Login Page which will be displayed for user to enter login data.

So In our case, What we will do is inside umLonPage.JSP, we will check for the URL in the browser and depending upon the URL we will call the respective umLogonDefault.JSP(we renamed them as umLogOnURL1.JSP and umLogonURL2.JSP) page.

Here all the 3 JSPs are inside the same LogOn.PAR

Regards,

Srinivas.

Edited by: srinivas sistu on Sep 24, 2008 11:39 AM

former_member189631
Active Contributor
0 Kudos

Sreeni,

You are right. Its possible to have 2 JSPs as you said.

Consider this situation,

I have one portal url which calls logon page whenever I access the portal.

Now I would like to have onemore url which also has to call same logon page.

If am able to do this, I can control the portal logon page display based on url in the logon page itself.

Your suggestions please!

Ram

Former Member
0 Kudos

I guess you need to have 2 URL's point to the same portal installation i.e same ip address. I suppose the windows admin guys will be ready to help...just register 2 url for the same ip.....on the DNS server.

Thanks,

GLM

Former Member
0 Kudos

Hi..

Refer;;

[]

Thanks...

prashil
Advisor
Advisor
0 Kudos

Hi Ramganesan,

I think you should write a custom program to identify the URL and then redirect it correct portal desktop.

Custom program will identify the URL and fetch the different logon par for different URL.

Customize the logon par to differentiate the URL like images or text or layout.

Hope it helps.

Regards,

Prashil

rudradev_devulapalli3
Active Participant
0 Kudos

HI Ram,

What sites you are going to create with the urls is the sites are anonymous sites(External Facing Portals).

Regards,

Rudradev