Skip to content

Instantly share code, notes, and snippets.

@Temaruk
Last active August 29, 2015 14:02
Show Gist options
  • Save Temaruk/4fca2a92f02903c698e0 to your computer and use it in GitHub Desktop.
Save Temaruk/4fca2a92f02903c698e0 to your computer and use it in GitHub Desktop.
Apache mass vhost template.
<VirtualHost *:80>
ServerAdmin fake@mail.com
ServerName example.dev
ServerAlias *.dev
DocumentRoot /var/www/mamp
VirtualDocumentRoot /var/www/mamp/%1/
UseCanonicalName Off
<Directory /var/www/mamp/*>
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/www/logs/error.log
LogLevel warn
CustomLog /var/www/logs/access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment