How to change context from root to something else

To change the default context under which liferay runs from root ( / ) to something else several files need to be changed:

1. Change the variable portal.ctx in portal.properties. As a rule it is overriden in portal-ext.properties

   portal.ctx=/mynewcontext

2. Add this to web.xml

    <context-param>        <param-name>root_path</param-name>                <param-value>/mynewcontext</param-value>         </context-param>

3. For weblogic change weblogic.xml, add

    <context-root>/mynewcontext</context-root>

Some useful forum posts:

http://www.liferay.com/community/forums/-/message_boards/message/1041350

http://www.liferay.com/community/forums/-/message_boards/message/83388

0 Attachments
4769 Views
Average (0 Votes)
The average rating is 0.0 stars out of 5.
Comments