Keywords: LAMP/MAMP/WAMP - Installers - How to - Application configuration
Having trouble with the MAMP on OSX virtual hosts configuration. I just want to use it as a local development server for the sites I work on. I modify my computer’s hosts file to point the actual domain names at the local IP, but with the MAMP installation, I can’t seem to get the virtual hosts to work.
I’ve read a few posts on this forum and tried various solutions, but no luck.
Here is the virtual host I’m trying to set up as a test:
<VirtualHost *:8080> DocumentRoot "/PATH_TO_DIR/MAMP_7424/apache2/htdocs/test" ServerName mymamp.com ServerAlias www.mymamp.com </VirtualHost>
I’ve tried putting this in:
I’ve also tried
In my hosts file I’ve tried:
localhost mymamp.com localhost:8080 mymamp.com 127.0.0.1 mymamp.com 127.0.0.1:8080 mymamp.com
The closest I’ve gotten was using
127.0.0.1 mymamp.com which gives ERR_CONNECTION_REFUSED in the browser instead of DNS_PROBE_FINISHED_NXDOMAIN
the ‘test’ directory in htdocs contains a simple index.html file.
What am I doing wrong?