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

When Portal Proxy Path Is Set Thumbnails From Fragments Are Not Found

    Details

      Description

      Steps to reproduce:

      1. Before starting the server, include the following property in the file portal-ext.properties:
        portal.proxy.path=/public
        
      2. Configure and run a reverse proxy to point to your Liferay instance. If you choose to use NGINX, make sure to use the following configuration:
        worker_processes  1;
        
        events {
            worker_connections  1024;
        }
        
        http {
            server {
                listen 80;
        
                root /usr/local/var/www;
                index index.html index.htm;
                server_name localhost;
        
                location /public/ {
                    proxy_set_header Host $host;
                    proxy_pass http://localhost:8080/;
                }
            }
        }
        

        What this will do is create a webserver that listens to the port 80, and redirects every request made for its address that has the subpath "/public" to your Liferay's address and port. In the case above, the Liferay instance is located on the same address as the NGINX server and listens to the port 8080;

      3. After starting the Liferay instance, access it by going to the URL http://localhost/public if you're using the same machine where the NGINX is running;
      4. Login as administrator and go to the Site's Site Builder > Pages;
      5. Click to add a Public Page;
      6. Select Blank;
      7. Give a name to it and add it;
      8. On the sidebar, click on Fragments, then Basic Components.

      Actual result:
      No thumbnail was found.

      Expected result:
      Liferay should be able to fully load the respective thumbnails.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                21 weeks, 4 days ago

                Packages

                Version Package
                7.2.10 DXP FP5
                7.2.10.2 DXP SP2
                7.2.X
                7.3.0 CE GA1
                7.3.1 CE GA2
                7.3.2 CE GA3
                Master