Apache

Control the Apache service

sudo service apache2 restart
sudo systemctl reload apache2

Enable and disable a site

sudo a2ensite example.com.conf
sudo a2dissite example.com.conf

Custom log format. Logs at /var/log/apache2

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{Host}i\" \"%{User-agent}i\"" chrisdebug
CustomLog ${APACHE_LOG_DIR}/access.log chrisdebug