Created
November 26, 2012 23:03
-
-
Save joecritch/4151258 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NameVirtualHost *:80 | |
<Virtualhost *:80> | |
VirtualDocumentRoot "/Users/Joe/Sites/%1" | |
ServerName vhosts.dev | |
ServerAlias *.dev | |
UseCanonicalName Off | |
LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon | |
ErrorLog "/Users/Joe/Sites/vhosts-error_log" | |
<Directory "/Users/Joe/Sites/*"> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride All | |
Order allow,deny | |
Allow from all | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} -s [OR] | |
RewriteCond %{REQUEST_FILENAME} -l [OR] | |
RewriteCond %{REQUEST_FILENAME} -d | |
RewriteRule ^.*$ - [NC,L] | |
RewriteRule ^.*$ index.php [NC,L] | |
</Directory> | |
</Virtualhost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment