Skip to content

Instantly share code, notes, and snippets.

@CroneKorkN
Created July 14, 2015 11:04
Show Gist options
  • Save CroneKorkN/1d245c2d99ce56b5188d to your computer and use it in GitHub Desktop.
Save CroneKorkN/1d245c2d99ce56b5188d to your computer and use it in GitHub Desktop.
Wildcard apache-vhosts for local web developement
<VirtualHost *:80>
ServerName a.dev
ServerAlias *.dev
VirtualDocumentRoot "/var/www/%1"
UseCanonicalName Off
php_admin_flag safe_mode Off
</VirtualHost>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment