Sometime we need to execute Liferay Portal in a different web context, for example in instead of

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

  1. Rename //webapps/ROOT to //webapps/myportal
  2. Edit or create //webapps/myportal/WEB-INF/classes/


  1. Rename //conf/Catalina/localhost/ROOT.xml to //conf/Catalina/localhost/myportal.xml

  2. Restart Liferay and go to, 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 with


- Run liferay on non root context: