Skip to content

Instantly share code, notes, and snippets.

@michaelfox
Created February 12, 2013 16:41
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 michaelfox/4771201 to your computer and use it in GitHub Desktop.
Save michaelfox/4771201 to your computer and use it in GitHub Desktop.
Basic apache vhost template for use on local development environments.
# Site: sitename.local
<VirtualHost *:80>
ServerName sitename.local
ServerAlias *.sitename.local
DirectoryIndex index.php index.html
DocumentRoot "/www/sitename/web"
<Directory /www/sitename/web>
Options All +Indexes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
SetEnv SITE_ENVIRONMENT "DEVELOPMENT"
LogLevel warn
ErrorLog "/www/sitename/logs/error.log"
CustomLog "/www/sitename/logs/access.log" combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment