Skip to content

Instantly share code, notes, and snippets.

@beije
Created April 16, 2014 07:57
Show Gist options
  • Save beije/c1ec8416a38b6dc517c6 to your computer and use it in GitHub Desktop.
Save beije/c1ec8416a38b6dc517c6 to your computer and use it in GitHub Desktop.
VirtualHost multiple dev environments
<VirtualHost *:80>
ServerAdmin webmaster@localhost
VirtualDocumentRoot "/var/www/%0"
ServerName localhost
ServerAlias *
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
LogLevel debug
<Directory /var/www>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment