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

    • Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • None
    • --Sprint 11/12, 6.2.0 CE M2
    • WCM
    • None
    • - 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

              support-lep@liferay.com SE Support
              oliveti Olivier Spieser (Inactive)
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                10 years, 42 weeks, 4 days ago

                Packages

                  Version Package
                  --Sprint 11/12
                  6.2.0 CE M2