A little trick to simplify your apache virtual hosts configuration, instead of full paths you can use some predefined variables like the directory of apache logs or the configuration directory.
${APACHE_LOG_DIR} is for /var/log/apache2
1 2 | ErrorLog ${APACHE_LOG_DIR}/access.log CustomLog ${APACHE_LOG_DIR}/error.log |
$APACHE_CONFDIR is for /etc/apache2
1 | $APACHE_CONFDIR/mods-available |
Leave a Reply