Skip to content

Instantly share code, notes, and snippets.

@steverobbins
Last active August 29, 2015 14:05
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 steverobbins/f45c9b2b49df6553e9ba to your computer and use it in GitHub Desktop.
Save steverobbins/f45c9b2b49df6553e9ba to your computer and use it in GitHub Desktop.
/Applications/MAMP/conf/apache/httpd.conf
NameVirtualHost *
<VirtualHost *>
DocumentRoot "/Applications/MAMP/htdocs"
ServerName localhost
</VirtualHost>
<VirtualHost *>
ServerName 127.0.0.1.xip.io
UseCanonicalName Off
ServerAlias *.127.0.0.1.xip.io
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/html/*>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
VirtualDocumentRoot /var/www/html/%1
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment