Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-28697

Serving web/var/ files via nginx

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: High High
    • None
    • 1.12.0, 2.0.0
    • None

    Description

      The default nginx config will attempt to serve images etc located in web/var directly, not via phpfpm

      However, by default the nginx container has not web/var mounted, thus serving of such images and files will fail.

      A fix is to add this line :

      diff --git a/doc/docker/distribution.yml b/doc/docker/distribution.yml
      index 811d494..7cb28fe 100644
      --- a/doc/docker/distribution.yml
      +++ b/doc/docker/distribution.yml
      @@ -52,6 +52,7 @@ services:
            - TIMEOUT=190
           volumes:
            - distribution:/var/www:ro
      +     - vardir:/var/www/web/var:ro
           networks:
            - frontend
            - backend
      

      However, I am quite sure this behavior has changed at some point in time and that all files, including images, where served via phpfpm so that permission checking could be done.
      So is current behavior (let nginx serve them directly) the desirable one ?

      Attachments

        Activity

          People

            Unassigned Unassigned
            vidar.langseid@ibexa.co Vidar Langseid
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: