Last active
December 14, 2017 10:39
-
-
Save luckyshot/5566682 to your computer and use it in GitHub Desktop.
Virtual Host in MAMP for Mac OS X Mountain Lion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo nano /Applications/MAMP/conf/apache/httpd.conf | |
------------------------- | |
NameVirtualHost * | |
<VirtualHost *> | |
DocumentRoot "/Users/xavi/Dropbox/WWW" | |
ServerName localhost | |
</VirtualHost> | |
<VirtualHost *> | |
DocumentRoot "/Users/xavi/Dropbox/WWW/vps/xaviesteve.com" | |
ServerName local.xaviesteve.com | |
</VirtualHost> | |
<VirtualHost *> | |
DocumentRoot "/Users/xavi/Dropbox/WWW/vps/cryptospaniards.com" | |
ServerName local.cryptospaniards.com | |
</VirtualHost> | |
<VirtualHost *> | |
DocumentRoot "/Users/xavi/Dropbox/WWW/joyners/web/frontend/web" | |
ServerName local.joyners.es | |
</VirtualHost> | |
<VirtualHost *> | |
DocumentRoot "/Users/xavi/Dropbox/WWW/joyners/web/backend/web" | |
ServerName admin.local.joyners.es | |
</VirtualHost> | |
<VirtualHost *> | |
DocumentRoot "/Users/xavi/Dropbox/WWW/joyners/web/api/web" | |
ServerName api.local.joyners.es | |
</VirtualHost> | |
sudo nano /private/etc/hosts | |
------------------------- | |
127.0.0.1 local.linkmagic.co | |
Restart Apache | |
------------------------- | |
sudo /Applications/MAMP/bin/apache2/bin/apachectl start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment