Skip to content

Instantly share code, notes, and snippets.

@morgenfriedel
Created April 25, 2017 03:58
Show Gist options
  • Save morgenfriedel/0211cd564b25445b1661dbc8f29b8bb1 to your computer and use it in GitHub Desktop.
Save morgenfriedel/0211cd564b25445b1661dbc8f29b8bb1 to your computer and use it in GitHub Desktop.
Template for Apache Virtual Host file.
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName example.com
ServerAlias www.example.com
DocumentRoot /var/www/example.com/public_html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment