Hi
Is the free MAMP actually able to take on board virtual hosts?
I've previously, umpteen times, added virtual hosts to the installed Apache (comes with 10.4). It's so easy it is like falling off the proverbial log.
Which is why it strikes me as odd I should suddenly become incapable of adding the correct amends to conf/host files with MAMP. Everything I look at outlines the usual standard entries - yet, my MAMP seems to be ignoring the entries in the conf file giving me "connection refused" messages. I think the hosts file is being picked up, but I don't know of a way of actually testing whether it is hosts or conf that's being ignored - if anyone knows, that'll be really cool and maybe a step to resolving this.
I'm really stumped as all the instructions on the net seem to spell out the 'usual' falling-off-the-log amends that, as I say I've done successfully umpteen times with the Mac out-of-the-box Apache.
For info:
The ports are the default for MAMP - 8888 and 8889 respectively.
Root folder as default: /Applications/MAMP/htdocs (specified in the preference of the start-up dialogue)
Entry in hosts
Interestingly there is no 127.0.0.1 localhost:8888 in the hosts file yet localhost:8888 works. How is this?
Entry in /Applications/MAMP/conf/apache/httpd.conf
localhost:8888 works regardless... interestingly it ignores any directive I might add to VirtualHost such as below continuing on to the root specified in the default.
Hoping I'm missing something blindingly obvious - cos blindingly obvious will be easy to sort. Cheers.
Is the free MAMP actually able to take on board virtual hosts?
I've previously, umpteen times, added virtual hosts to the installed Apache (comes with 10.4). It's so easy it is like falling off the proverbial log.
Which is why it strikes me as odd I should suddenly become incapable of adding the correct amends to conf/host files with MAMP. Everything I look at outlines the usual standard entries - yet, my MAMP seems to be ignoring the entries in the conf file giving me "connection refused" messages. I think the hosts file is being picked up, but I don't know of a way of actually testing whether it is hosts or conf that's being ignored - if anyone knows, that'll be really cool and maybe a step to resolving this.
I'm really stumped as all the instructions on the net seem to spell out the 'usual' falling-off-the-log amends that, as I say I've done successfully umpteen times with the Mac out-of-the-box Apache.
For info:
The ports are the default for MAMP - 8888 and 8889 respectively.
Root folder as default: /Applications/MAMP/htdocs (specified in the preference of the start-up dialogue)
Entry in hosts
Code:
127.0.0.1 localhost
127.0.0.1 mySite.dev
etc.,
Entry in /Applications/MAMP/conf/apache/httpd.conf
Code:
NameVirtualHost *
<VirtualHost *>
ServerName mySite.dev
DocumentRoot /Applications/MAMP/htdocs/mySite
</VirtualHost>
localhost:8888 works regardless... interestingly it ignores any directive I might add to VirtualHost such as below continuing on to the root specified in the default.
Code:
<VirtualHost *>
ServerName localhost:8888
DocumentRoot /somewhereElse/htdocs
</VirtualHost>
Hoping I'm missing something blindingly obvious - cos blindingly obvious will be easy to sort. Cheers.