構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Gowtham Mani
Changing the context of the portal
2012/05/07 6:35
答え

Gowtham Mani

ランク: Junior Member

投稿: 56

参加年月日: 2008/11/25

最近の投稿

Hi,

How to change the context root of the portal from / to a custom one say /domain/site

I tried using the portal.ctx property, but getting an indefinite loop when i try to load the page in the browser.

using liferay 6.1 bundeled with tomcat package.

Thanks
Gowtham
Priyanka Dhingra
RE: Changing the context of the portal
2012/05/07 9:39
答え

Priyanka Dhingra

ランク: Liferay Master

投稿: 501

参加年月日: 2011/12/19

最近の投稿

Try opening it in the other browser, it should work
Hitoshi Ozawa
RE: Changing the context of the portal
2012/05/07 20:50
答え

Hitoshi Ozawa

ランク: Liferay Legend

投稿: 7949

参加年月日: 2010/03/23

最近の投稿

or clearing the web browser cache. :-)
Gowtham Mani
RE: Changing the context of the portal
2012/05/07 23:15
答え

Gowtham Mani

ランク: Junior Member

投稿: 56

参加年月日: 2008/11/25

最近の投稿

Clearing the cache didn't work-out and the other browser option also emoticon
Ravi Kumar Gupta
RE: Changing the context of the portal
2012/05/07 23:23
答え

Ravi Kumar Gupta

ランク: Liferay Legend

投稿: 1303

参加年月日: 2009/06/23

最近の投稿

Gowtham, Try this. Shutdown the server. Try opening this in browser, it should say not found/responding etc. Restart the browser, restart Liferay Server.
I guess you might have already tried changing the portal.ctx property and renaming the root folder.
Gowtham Mani
RE: Changing the context of the portal
2012/05/07 23:40
答え

Gowtham Mani

ランク: Junior Member

投稿: 56

参加年月日: 2008/11/25

最近の投稿

Ravi,

the one which is confusing me is how to rename the folder structure for the /domain/site context.

if its the case for /domain it would be just renaming the folder and the ROOT.xml file, but not sure what to do for the /domain/site
Ravi Kumar Gupta
RE: Changing the context of the portal
2012/05/08 0:19
答え

Ravi Kumar Gupta

ランク: Liferay Legend

投稿: 1303

参加年月日: 2009/06/23

最近の投稿

hmm.. tried several things nothing worked.. but there is one thing that can help. Using mod_proxy/http with apache on front to server portal as /domain/site
Gowtham Mani
RE: Changing the context of the portal
2012/05/08 0:29
答え

Gowtham Mani

ランク: Junior Member

投稿: 56

参加年月日: 2008/11/25

最近の投稿

ya with apache i can make this work, but wanted to know how to work with /domain/site context instead simple context as /domain
Ravi Kumar Gupta
RE: Changing the context of the portal
2012/05/08 0:53
答え

Ravi Kumar Gupta

ランク: Liferay Legend

投稿: 1303

参加年月日: 2009/06/23

最近の投稿

I am not sure Gowtham, whether that is possible. Hitoshi, any word about this kind of context path?
Hitoshi Ozawa
RE: Changing the context of the portal
2012/05/08 5:38
答え

Hitoshi Ozawa

ランク: Liferay Legend

投稿: 7949

参加年月日: 2010/03/23

最近の投稿

Have you deleted the temp directory under liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23
Gowtham Mani
RE: Changing the context of the portal
2012/05/08 5:41
答え

Gowtham Mani

ランク: Junior Member

投稿: 56

参加年月日: 2008/11/25

最近の投稿

Hi Hitoshi,

That is one of the first thing i did emoticon
Corné Aussems
RE: Changing the context of the portal
2012/05/10 22:50
答え

Corné Aussems

ランク: Liferay Legend

投稿: 1313

参加年月日: 2006/10/03

最近の投稿

You could rename the ROOT webapp
Gowtham Mani
RE: Changing the context of the portal
2012/05/10 23:28
答え

Gowtham Mani

ランク: Junior Member

投稿: 56

参加年月日: 2008/11/25

最近の投稿

yes Corne, i have tried re-naming the root webapp but for the double context like /domain/site i dont know how to proceed with that
Corné Aussems
RE: Changing the context of the portal
2012/05/11 0:09
答え

Corné Aussems

ランク: Liferay Legend

投稿: 1313

参加年月日: 2006/10/03

最近の投稿

Ha Gowtham,

My message was not complete, battery died, but somehow commited this reply emoticon
It is simply not possible in Tomcat to have a subdirectory in the context path only when using docpath and such;
Context

So you succeeded in a single context path right!?
Wiki

I know what you try to reach and i think that is impossible without some strange Tomcat hack like
1  <Context path="/portal/smth" docBase="webapps/portal" /> 


For others you could always change these too
1
2    layout.friendly.url.private.group.servlet.mapping=/group
3    layout.friendly.url.private.user.servlet.mapping=/user
4    layout.friendly.url.public.servlet.mapping=/web
Corné Aussems
RE: Changing the context of the portal
2012/05/11 1:29
答え

Corné Aussems

ランク: Liferay Legend

投稿: 1313

参加年月日: 2006/10/03

最近の投稿

mmm to no avail either.

WARNING: A docBase C:\LIFERAY_DEV\servers\liferay-portal-6.1.10-ee-ga1\tomcat-7.0.25\webapps\webapps\ROOT inside the host appBase has been specified, and will b
e ignored


But i found your solution
one should use a # for seperation
Rename ROOT to portal#test
rename root.xml ${Catalina-home}/conf/Catalina/localhost/portal#test.xml
change in context file
<Context path="/portal#test" crossContext="true" >

and of course add this to the properties
portal.ctx=/portal/test
画像の固定

添付ファイル: Afbeelding 166.png (21.1k)
Gowtham Mani
RE: Changing the context of the portal
2012/05/11 2:45
答え

Gowtham Mani

ランク: Junior Member

投稿: 56

参加年月日: 2008/11/25

最近の投稿

Sorry for delayed response.
I tried the same steps but instead of renaming the folder to domain#site i created a sub directory named site emoticon

Thanks for the info.

Gowtham