Skip to content

Instantly share code, notes, and snippets.

@blainsmith
Created November 9, 2012 16:38
Show Gist options
  • Save blainsmith/4046733 to your computer and use it in GitHub Desktop.
Save blainsmith/4046733 to your computer and use it in GitHub Desktop.
OSX/MAMP Localhost Development
# Custom Hosts
127.0.0.1 wordpress.dev
127.0.0.1 drupal.dev
127.0.0.1 webapp-a.dev
127.0.0.1 webapp-b.dev
#127.0.0.1 NEW-SITE.dev
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
UseCanonicalName Off
VirtualDocumentRoot /Applications/MAMP/htdocs/%0
</VirtualHost>
#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80
Listen 8888
# MORE CONFIG SETTINGS...
# Virtual hosts
Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment