# Define the variables at the top of the configuration file
Define APACHE_LOCK_DIR /var/run/apache2
Define APACHE_PID_FILE /var/run/apache2/apache2.pid
Define APACHE_RUN_USER www-data
Define APACHE_RUN_GROUP www-data
Define APACHE_LOG_DIR /var/log/apache2

# Use the variables in the configuration
PidFile ${APACHE_PID_FILE}

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html

    <Directory /var/www/html>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Require all granted
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>