Created
December 1, 2014 05:52
-
-
Save mattgrill/37e16711a75df5202ba8 to your computer and use it in GitHub Desktop.
httpd-vhosts.conf
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
Listen 80 | |
# Use name-based virtual hosting. | |
UseCanonicalName Off | |
LogFormat "%V %h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\"" dynamic_vhosts | |
CustomLog /var/log/apache2/access_log dynamic_vhosts | |
<VirtualHost *:80> | |
ServerName localhost | |
VirtualDocumentRoot /Users/{USERNAME}/Sites/%0 | |
<Directory "/Users/{USERNAME}/Sites"> | |
Options Indexes FollowSymLinks MultiViews | |
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