Skip to content

Instantly share code, notes, and snippets.

@roberto-butti
Created January 18, 2014 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roberto-butti/8491695 to your computer and use it in GitHub Desktop.
Save roberto-butti/8491695 to your computer and use it in GitHub Desktop.
Confiurazione apache Virtual Hosts con hostname wildcard
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