Skip to content

Instantly share code, notes, and snippets.

@djordjecupic
Last active January 22, 2019 21:03
Show Gist options
  • Save djordjecupic/e3bb9dc85dd8621b63c58d68e4ca1d89 to your computer and use it in GitHub Desktop.
Save djordjecupic/e3bb9dc85dd8621b63c58d68e4ca1d89 to your computer and use it in GitHub Desktop.
Bare-bones Apache Virtual Host configuration template
<VirtualHost *:80>
ServerAdmin admin@example.com
ServerName example.com
ServerAlias www.example.com
DocumentRoot /var/www/example.com/public_html
<Directory /var/www/example.com/public_html>
Options -Indexes +FollowSymLinks
AllowOverride All
</Directory>
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