Virtual Hosts for MAMP not working correctly
I’m trying to set up virtual hosts so I can place my local WordPress site files in directories outside of MAMP’s htdocs. I followed these instructions verbatim, and it didn’t work: http://sawmac.com/mamp/virtual/. Then I found this and tried making some adjustments, but it still isn’t working for me: http://wordpress.org/support/topic/running-multiple-local-test-sites-on-mamp.
My etc/hosts file looks like this:
## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost fe80::1%lo0 localhost 127.0.0.1 localhost.mysite
The bottom of my apache httpd.conf file looks like this:
NameVirtualHost * <VirtualHost *> DocumentRoot "/Applications/MAMP/htdocs" ServerName localhost </VirtualHost> <VirtualHost *> DocumentRoot "Users/myname/Documents/Sites/mysite" </VirtualHost>
I would appreciate any help troubleshooting this. Thanks.
- The topic ‘Virtual Hosts for MAMP not working correctly’ is closed to new replies.