Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-55751

Portal running outside root context can't be put to root context on web server

Details

    • 3

    Description

      I have AS with WebServer in front of it. I need to run Liferay on AS in other context as ROOT (let's say /portal), since it is not the only application running on the AS. At the same moment I need to present the portal to the user on root context using web server.

      How to reproduce:
      In the Tomcat bundle put Liferay to another context (move app from ROOT to portal) and rename and edit $TOMCAT/conf/Catalina/localhost/ROOT.xml correspondingly. Liferay is now fully available at http://localhost:8080/portal

      Set Apache reverse proxy to send requests to the Liferay Portal:

      httpd.conf
      ProxyPass /portal http://localhost:8080/portal
      ProxyPassReverse /portal http://localhost:8080/portal
      
      portal-ext.properties
      web.server.http.port=80
      portal.proxy.path=
      

      Now the portal is available at http://localhost/portal.

      But if I want to make portal accessible at http://localhost/ i would go with something like this:

      httpd.conf
      ProxyPass / http://localhost:8080/portal
      ProxyPassReverse / http://localhost:8080/portal
      
      portal-ext.properties
      web.server.http.port=80
      portal.proxy.path=/
      

      But this is not working, since Liferay will only prefix generated links with portal.proxy.path, but not remove the context.

      Attachments

        Activity

          People

            support-lep@liferay.com SE Support
            aldar Ales Rybak
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              6 years, 10 weeks, 3 days ago

              Packages

                Version Package