Skip to content

Instantly share code, notes, and snippets.

@revagomes
Last active December 14, 2015 00:09
Show Gist options
  • Save revagomes/4996882 to your computer and use it in GitHub Desktop.
Save revagomes/4996882 to your computer and use it in GitHub Desktop.
Catchall config for local virtualhosts on Apache.
<VirtualHost *:80>
ServerAlias localhost *.l #wildcard catch all
VirtualDocumentRoot /var/www/%1/
UseCanonicalName Off
<Directory "/var/www">
Options FollowSymLinks
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