Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-80648

$CFG->xsendfilealiases in config-dist.php is missing localrequestdir

XMLWordPrintable

      The config-dist.php comes with a preconfigured array for $CFG->xsendfilealiases and this is missing an entry for custom $CFG->localrequestdir locations.

      // If your X-Sendfile implementation (usually Nginx) uses directory aliases specify them
      // in the following array setting:
      //     $CFG->xsendfilealiases = array(
      //         '/dataroot/' => $CFG->dataroot,
      //         '/cachedir/' => '/var/www/moodle/cache',    // for custom $CFG->cachedir locations
      //         '/localcachedir/' => '/var/local/cache',    // for custom $CFG->localcachedir locations
      //         '/tempdir/'  => '/var/www/moodle/temp',     // for custom $CFG->tempdir locations
      //         '/filedir'   => '/var/www/moodle/filedir',  // for custom $CFG->filedir locations
      //     );

       

      This results in an xsendfile error for some files.

            Daniel Ziegenberg Daniel Ziegenberg
            Daniel Ziegenberg Daniel Ziegenberg
            Paul Holden Paul Holden
            Andrew Lyons Andrew Lyons
            Andrew Lyons Andrew Lyons
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 10 minutes
                1h 10m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.