One specific VirtualHost in MAMP getting all the requests
- by julien_c
I'm pulling my hair out over a seemingly trivial issue...
I'm using MAMP 2.0 and want to configure a Virtual Host for local development.
Here's my httpd-vhosts.conf:
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot /Applications/MAMP/htdocs/mysite/public
ServerName mysite.local
</VirtualHost>
As soon as I add the VirtualHost directive, every request to http://localhost gets redirected to the DocumentRoot specified by mysite.local. Why?