MAMP Pro virtual hosts on Mountain Lion not being recognized

Posted by user135242 on Server Fault See other posts from Server Fault or by user135242
Published on 2012-09-08T20:45:29Z Indexed on 2012/09/08 21:39 UTC
Read the original article Hit count: 236

Filed under:

I'm running MAMP PRO 2.1.1 on OSX 10.8.1 and not having any luck getting Apache to recognize any hosts that have been set up in MAMP besides localhost. This only happens when trying to use port 80. When I switch to port 8888 everything runs fine.

Mountain Lion's Apache has been disabled and I get no errors or warnings when starting MAMP and the servers. Any doc root I set for "localhost" runs without problem. Any other server name I define, however, results in "cannot connect" when viewing in Chrome (not to be confused with "cannot find" - the browser is in fact following /etc/hosts to 127.0.0.1, but MAMP's Apache is simply not responding)

I was wondering if anyone else has run into this issue or knows how to solve it. I'm working on some WordPress development and it keeps wanting to redirect to the base URL (with no port reference) even during setup. I'm sure I could fix things from the WP side but I'd rather figure out what the root issue is with MAMP.

Thanks in advance for any insight you can provide.

© Server Fault or respective owner

Related posts about mamp