One specific VirtualHost in MAMP getting all the requests
Posted
by
julien_c
on Server Fault
See other posts from Server Fault
or by julien_c
Published on 2012-10-05T15:11:36Z
Indexed on
2012/10/05
15:39 UTC
Read the original article
Hit count: 215
apache2
|virtualhost
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?
© Server Fault or respective owner