Skip to content

Instantly share code, notes, and snippets.

@micheleorselli
Created July 16, 2013 11:51
Show Gist options
  • Save micheleorselli/6008044 to your computer and use it in GitHub Desktop.
Save micheleorselli/6008044 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerName dev
ServerAlias *.local
DocumentRoot "/Users/micheleorselli/workspace/www/"
SetEnv LocalDev true
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.* [NC]
RewriteCond %{HTTP_HOST} ^([^\.]+)\.local
RewriteCond /Users/micheleorselli/workspace/www/%1/web -d
RewriteRule ^(.*) /%1/web/$1 [L]
RewriteCond %{HTTP_HOST} !^www.* [NC]
RewriteCond %{HTTP_HOST} ^([^\.]+)\.local
RewriteCond /Users/micheleorselli/workspace/www/%1 -d
RewriteRule ^(.*) /%1/$1 [L]
<Directory "/Users/micheleorselli/workspace/www/">
Order allow,deny
Allow from all
AllowOverride all
</Directory>
<Location />
SetInputFilter DEFLATE
</Location>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment