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

Failed to load API definition when when using portal.proxy.path

Details

    Description

      Steps:

      1. Configure a reverse proxy (e.g. using Apache)
        <VirtualHost *:5001>
          ServerName localhost
          ProxyPreserveHost On
          <location /portal>
            ProxyPass "http://localhost:8080"
            ProxyPassReverse "http://localhost:8080"
          </location>
        </VirtualHost>
        
      2. Prepare a clean bundle with the following portal property:
        portal.proxy.path=/portal
        web.server.http.port=5001
        
      3. Start Liferay
      4. Navigate to http://localhost:5001/portal
        • Login as admin user
      5. Navigate to http://localhost:5001/portal/o/api/

      Expected results
      The page should load successfully.

      Actual results
      Failed to load API definition.

      Note: Please refer to this article about how to set up Apache proxy.

      Attachments

        Issue Links

          Activity

            People

              team-headless Product Team Headless
              joyce.wang Joyce Wang
              Carlos Correa Carlos Correa
              Carlos Correa Carlos Correa
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                19 weeks, 1 day ago

                Packages

                  Version Package
                  7.4.3.38 CE GA38
                  7.4.3.39 CE GA39
                  7.4.3.40 CE GA40
                  Master