Skip to content

Instantly share code, notes, and snippets.

@ajpaulson
Created May 29, 2015 08:47
Show Gist options
  • Save ajpaulson/243905317c3e0e0b03c2 to your computer and use it in GitHub Desktop.
Save ajpaulson/243905317c3e0e0b03c2 to your computer and use it in GitHub Desktop.
Basic Apache Vhost
<VirtualHost *:80>
ServerName domain.com
ServerAlias www.domain.com
ServerAdmin [email protected]
DocumentRoot /var/www/domain.com/
<Directory /var/www/domain.com/>
Options Indexes FollowSymLinks MultiViews
AllowOverride FileInfo
Order allow,deny
allow from all
</Directory>
# Possible values: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
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