Skip to content

Instantly share code, notes, and snippets.

@GhazanfarMir
Created August 31, 2016 15:21
Show Gist options
  • Save GhazanfarMir/7015a373b83ae513dcd3f6e5cfc9d3c7 to your computer and use it in GitHub Desktop.
Save GhazanfarMir/7015a373b83ae513dcd3f6e5cfc9d3c7 to your computer and use it in GitHub Desktop.
MAMP Virtual Hosts
NameVirtualHost *:8888
<VirtualHost *:8888>
ServerName example.com
DocumentRoot /Applications/MAMP/htdocs/cato
<Directory /Applications/MAMP/htdocs/cato>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:8888>
ServerName ebury.com.local
DocumentRoot /Applications/MAMP/htdocs/zenf
<Directory /Applications/MAMP/htdocs/zenf>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
# add the hostname in the hosts and access it using the port e.g.
# 127.0.0.1 ebury.com.local:8888
# Usage: example.com:8888 & ebury.come.local:8888
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment