Skip to content

Instantly share code, notes, and snippets.

@Phunky
Created September 29, 2014 16:02
Show Gist options
  • Save Phunky/fecf39aff5de06297f92 to your computer and use it in GitHub Desktop.
Save Phunky/fecf39aff5de06297f92 to your computer and use it in GitHub Desktop.
Simple vhost for any .dev site in apache and with xip.io, obviously you need to point the domain to local host (dnsmasq is simplest way!)
#
# Any .dev folder in ~/Sites
#
<VirtualHost *:80>
VirtualDocumentRoot "/Users/phunky/Sites/%1.0.dev/public"
UseCanonicalName Off
ServerAlias %1.0.dev.*.xip.io
<Directory "/Users/phunky/Sites">
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