<VirtualHost *:80>
ServerAdmin admin@<lms_domain_name>
ServerName <lms_domain_name>
ServerAlias www.<lms_domain_name>
DocumentRoot /var/www/<name of the lms folder>/moodle
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<Directory /var/www/<name of the lms folder>/moodle>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>