I was using Nanobox to bootstrap my local development environments. I never face problems with that tool and until I wanted to use cron jobs locally with Moodle LMS. I found this project “DevilBox” and tested it with simple applications which made me decide to use it with all my Moodle projects. The problem I am facing is with “moodledata” folder. This folder must be outside of the public website root, where Moodle upload files, cache files, create temporary files, save sessions files and of course serve cached files from it like theme related files, media and so on.
The problem I am facing now is after installation, Moodle can’t serve files from this folder. It can create files in it but not serve them and I receive 303 error for all files from this folder. I tried to use custom Vhost to configure Nginx as Moodle recommend in their documentation, but same error persists. To be honest, I am out of options now, I don’t know what’s the problem exactly is it an Nginx problem or privileges?
Can someone give me a good reason why this is happening?