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

web.server.https.port is not used when communication between liferay and frontal web server is http

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: None
    • Fix Version/s: --Sprint 11/12, 6.2.0 CE M2
    • Component/s: ~[Archived] WCM
    • Labels:
      None
    • Environment:
      - A frontal reverse proxy (like apache) : configured in https
      - Liferay server : configured in http

      Description

      When there is a frontal web server (reverse proxy) with an https address configured in front of Liferay. In this case, the normal configuration in Liferay is :

      web.server.host=liferayportal
      web.server.protocol=https
      web.server.https.port=443

      If the communication between the reverse proxy and tomcat is in https everything works fine. But, if the communication is in http, Liferay doesn't user the https port but the http port configured in portal-ext.properties. So the configuration has to be :

      web.server.host=liferayportal
      web.server.protocol=https
      web.server.http.port=443

      The issue with this config, is that the value 443 is not standard for http and ":443" is appended to every url !

      The bug is in the class PortalImpl.java (it is checking if the request is secure and not if the "web.server.protocol" is https).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              oliveti Olivier Spieser
              Participants of an Issue:
              Recent user:
              Stian Sigvartsen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                9 years, 36 weeks, 1 day ago

                  Packages

                  Version Package
                  --Sprint 11/12
                  6.2.0 CE M2