Execute Liferay Portal on non ROOT context

Sometime we need to execute Liferay Portal in a different web context, for example in http://www.intix.info/myportal instead of http://www.intix.info/

Then, in this scenario we have to follow next steps:

  1. Rename <LIFERAY_HOME>/<TOMCAT_HOME>/webapps/ROOT   to <LIFERAY_HOME>/<TOMCAT_HOME>/webapps/myportal
  2. Edit or create portal-ext.properties (<LIFERAY_HOME>/<TOMCAT_HOME>/webapps/myportal/WEB-INF/classes/portal-ext.properties) :

  3. portal.ctx=/myportal
    ….

  4. Rename <LIFERAY_HOME>/<TOMCAT_HOME>/conf/Catalina/localhost/ROOT.xml TO <LIFERAY_HOME>/<TOMCAT_HOME>/conf/Catalina/localhost/myportal.xml
  5. Restart Liferay and go to  http://www.intix.info/myportal , should be possible to browser around liferay without errors, if you found broken links you must change absolut URL/Path adding to begin “/myportal”, for example:  update “http://www.intix.info/image/image_gallery?xyzx&#8221; with “http://www.intix.info/myportal/image/image_gallery?xyz”

Bye.

Links:

Run liferay on non root context:

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

@Chilcano

Posted in Portal
One comment on “Execute Liferay Portal on non ROOT context
  1. […] Execute Liferay Portal on non ROOT context Posted by Roger Carhuatocto Filed in Linux, PORTAL Leave a Comment […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Archives
%d bloggers like this: