Skip to content

Instantly share code, notes, and snippets.

@wjn
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wjn/d5340e4bee75f195bb90 to your computer and use it in GitHub Desktop.
Save wjn/d5340e4bee75f195bb90 to your computer and use it in GitHub Desktop.
Sample Apache2 Virtual Host
# domain: academicindexing.com
# public: /var/www/academicindexing.com/public/
<VirtualHost *:80>
# Admin email, Server Name (domain name), and any aliases
ServerAdmin will@nielsendigital.com
ServerName www.academicindexing.com
ServerAlias academicindexing.com
# Index file and Document Root (where the public files are located)
DirectoryIndex index.html index.php
DocumentRoot /var/www/academicindexing.com/public
# Log file locations
LogLevel warn
ErrorLog /var/www/academicindexing.com/logs/error.log
CustomLog /var/www/academicindexing.com/logs/access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment