Created
January 18, 2014 15:02
-
-
Save roberto-butti/8491695 to your computer and use it in GitHub Desktop.
Confiurazione apache Virtual Hosts con hostname wildcard
This file contains hidden or 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 | |
LogLevel debug | |
#RewriteLog logs/rewrite_log | |
#RewriteLogLevel 9 | |
<VirtualHost *:80> | |
UseCanonicalName Off | |
ServerName *.dev.local | |
VirtualDocumentRoot /Users/rbutti/Sites/httpd/%0/public | |
DirectoryIndex index.php | |
ErrorLog logs/vhost-error_log | |
LogFormat "%V %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" custom | |
CustomLog logs/vhost-access_log custom | |
<Directory "/Users/rbutti/Sites/httpd"> | |
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