I was asked the other day ‘How does the default Apache virtual host file looks like?’ I was having my Peruvian coffee and decided to place below the default Apache virtual host file in this post for any future reference.

<VirtualHost *:80>
    ServerName www.example.com
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Super simple. Enjoy and remember to keep coding with coffee!

Leave a comment

Your email address will not be published. Required fields are marked *