Getting forbidden or empty index on MAMP/Snow Leopard
I'm using MAMP on Snow Leopard and if I run the VHX (v2.0.6) setup wizard, it changes my MAMP ports to the MAMP defaults (8888 & 8889). When this happens, and I load a virtual host like this -- http://virtualhostname:8888 -- I get an empty 'Index Of' page, even though there are files there.
If I change the MAMP ports to the default apache/mysql ports (80 & 3306) like I want them, and then I load the virtual host like this -- http://virtualhostname -- I get a Forbidden page.
Any ideas how to fix this?

If I change the MAMP ports to the default apache/mysql ports (80 & 3306) like I want them, and then I load the virtual host like this -- http://virtualhostname -- I get a Forbidden page.
Any ideas how to fix this?

1
person has this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
The company marked this problem solved.
-
Inappropriate?OK I figured it out. I had to set the MAMP DocumentRoot to something hierarchically >= where the virtualhosts pointed.
MAMP > Preferences > Apache > DocumentRoot
I just set it as my home directory since my sites reside in subfolders of my home directory (/Users/yourusername)
Then you can create virtualhosts pointing at or inside that directory (ie. /Users/yourusername/Sites)
I'm surprised I couldn't find these instructions anywhere. I did find the instructions for changing the DocumentRoot for OSX native apache, but for some reason I didn't put it together that I needed to do that via MAMP's control panel.
So for anyone using MAMP and VirtualHostX and getting a forbidden error or empty index pages, EXPAND YOUR DOCUMENTROOT!
I’m tired of wasting time on this instead of actual development.
2 people say
this solves the problem
-
Inappropriate?Glad it's working.
Loading Profile...



EMPLOYEE