location /dataroot/ {
    internal;
    alias /var/www/learn.cmhlp.org/moodledata/;
    }
 
       # moodle rewrite rules
             rewrite ^/(.*.php)(/)(.*)$ /$1?file=/$3 last;
