Xsendfile has been added to apache and I have added the appropriate config file entries:
$CFG->xsendfile = 'X-Sendfile';
$CFG->xsendfilealiases = array(
'/dataroot/' => '/mnt/efs/moodledata/',
'/localcachedir/' => '/home/localcache',
'/cachedir/' => '/mnt/efs/moodledata/cache',
'/tempdir/' => '/mnt/efs/moodledata/temp',
'/filedir' => '/mnt/efs/moodledata/filedir',
However when enabling this I end up with no images - the other query is /filedir is the only option without a trailing slash in the alias array?
There appears to be no documentation on xsendfile other than that config-dist entry which really doesn't tell me very much. Using Apache on Ubuntu 16 - any advice appreciated?