Anybody upgraded to MAMP2 on Lion and experiencing any problems with Virtual Hosts?
In my host file and httpd.conf file I have a pretty standard setup:
Host
httpd.conf
The above works fine and I have it setup for a couple of different domains. But now I'm trying to add a new one and I'm having no luck at all. I'm copying the above code and changing the ServerName and DocumentRoot, restarting MAMP and trying to connect. All I see then if "server not found".
Any ideas?
Re-installed and set everything up from scratch and its all working now. Still no idea why I couldn't add a new virtual host though.
In my host file and httpd.conf file I have a pretty standard setup:
Host
Code:
127.0.0.1 mydomain.dev
httpd.conf
Code:
<VirtualHost *>
ServerName mydomain.dev
DocumentRoot /Users/User/Sites/mydomain.dev
</VirtualHost>
The above works fine and I have it setup for a couple of different domains. But now I'm trying to add a new one and I'm having no luck at all. I'm copying the above code and changing the ServerName and DocumentRoot, restarting MAMP and trying to connect. All I see then if "server not found".
Any ideas?
Re-installed and set everything up from scratch and its all working now. Still no idea why I couldn't add a new virtual host though.
Last edited: