By default on Ubuntu 18.04, the Apache 2 document root is found at /var/www/html. For our basic setup, we're going to ditch the /var/www/html folder and run straight from /var/www. If you already have a site running at this location, remember to configure the virtual host's path to your preferred location in the steps that follow.
sudo a2dissite 000-default
sudo joe /etc/apache2/sites-available/convention_master.conf
<VirtualHost *:80> ServerAdmin NameOfSomeone DocumentRoot /var/www ErrorLog /var/log/apache2/cm_error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/cm_access.log combined </VirtualHost> |
sudo a2ensite convention_master
sudo systemctl reload apache2.service