Skip to content

Instantly share code, notes, and snippets.

@ProfeC
Created April 27, 2013 12:34
Show Gist options
  • Select an option

  • Save ProfeC/5472962 to your computer and use it in GitHub Desktop.

Select an option

Save ProfeC/5472962 to your computer and use it in GitHub Desktop.
I just found this little gem here: http://dsheiko.com/weblog/my-lovely-mac-os-x-web-development-environment#highlighter_243198. Looks like something that could be useful to a few. ===> "Rob Allen has been quite comprehensive in his post Automatic Apache vhosts. If briefly, we just add at the bottom of /opt/local/apache2/conf/httpd.conf the follo…
<Virtualhost *:80>
VirtualDocumentRoot "/Users/yourname/Sites/dev/%1/wwwroot"
ServerName vhosts.dev
ServerAlias *.dev
UseCanonicalName Off
LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
ErrorLog "/Users/yourname/Sites/dev/vhosts-error_log"
<Directory "/Users/yourname Sites/dev/*">
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