掲示板

Changing the context of the portal

11年前 に Gowtham Mani によって更新されました。

Changing the context of the portal

Junior Member 投稿: 56 参加年月日: 08/11/26 最新の投稿
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
thumbnail
11年前 に Priyanka Dhingra によって更新されました。

RE: Changing the context of the portal

Liferay Master 投稿: 501 参加年月日: 11/12/20 最新の投稿
Try opening it in the other browser, it should work
thumbnail
11年前 に Hitoshi Ozawa によって更新されました。

RE: Changing the context of the portal

Liferay Legend 投稿: 7942 参加年月日: 10/03/24 最新の投稿
or clearing the web browser cache. :-)
11年前 に Gowtham Mani によって更新されました。

RE: Changing the context of the portal

Junior Member 投稿: 56 参加年月日: 08/11/26 最新の投稿
Clearing the cache didn't work-out and the other browser option also emoticon
thumbnail
11年前 に Hitoshi Ozawa によって更新されました。

RE: Changing the context of the portal

Liferay Legend 投稿: 7942 参加年月日: 10/03/24 最新の投稿
Have you deleted the temp directory under liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23
11年前 に Gowtham Mani によって更新されました。

RE: Changing the context of the portal

Junior Member 投稿: 56 参加年月日: 08/11/26 最新の投稿
Hi Hitoshi,

That is one of the first thing i did emoticon
thumbnail
11年前 に Corné Aussems によって更新されました。

RE: Changing the context of the portal

Liferay Legend 投稿: 1313 参加年月日: 06/10/03 最新の投稿
You could rename the ROOT webapp
11年前 に Gowtham Mani によって更新されました。

RE: Changing the context of the portal

Junior Member 投稿: 56 参加年月日: 08/11/26 最新の投稿
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
thumbnail
11年前 に Corné Aussems によって更新されました。

RE: Changing the context of the portal

Liferay Legend 投稿: 1313 参加年月日: 06/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
  <context path="/portal/smth" docBase="webapps/portal" />  


For others you could always change these too

    layout.friendly.url.private.group.servlet.mapping=/group
    layout.friendly.url.private.user.servlet.mapping=/user
    layout.friendly.url.public.servlet.mapping=/web
thumbnail
11年前 に Corné Aussems によって更新されました。

RE: Changing the context of the portal

Liferay Legend 投稿: 1313 参加年月日: 06/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

添付ファイル:

11年前 に Gowtham Mani によって更新されました。

RE: Changing the context of the portal

Junior Member 投稿: 56 参加年月日: 08/11/26 最新の投稿
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
thumbnail
11年前 に Ravi Kumar Gupta によって更新されました。

RE: Changing the context of the portal

Liferay Legend 投稿: 1302 参加年月日: 09/06/24 最新の投稿
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.
11年前 に Gowtham Mani によって更新されました。

RE: Changing the context of the portal

Junior Member 投稿: 56 参加年月日: 08/11/26 最新の投稿
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
thumbnail
11年前 に Ravi Kumar Gupta によって更新されました。

RE: Changing the context of the portal

Liferay Legend 投稿: 1302 参加年月日: 09/06/24 最新の投稿
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
11年前 に Gowtham Mani によって更新されました。

RE: Changing the context of the portal

Junior Member 投稿: 56 参加年月日: 08/11/26 最新の投稿
ya with apache i can make this work, but wanted to know how to work with /domain/site context instead simple context as /domain
thumbnail
11年前 に Ravi Kumar Gupta によって更新されました。

RE: Changing the context of the portal

Liferay Legend 投稿: 1302 参加年月日: 09/06/24 最新の投稿
I am not sure Gowtham, whether that is possible. Hitoshi, any word about this kind of context path?