403 Forbidden Error on MAMP

codeFragment picture codeFragment · Jan 7, 2016 · Viewed 16.7k times · Source

I try to run my local applications on MAMP PRO. Since now i run MAMP and everything works fine. Now i've changed to MAMP PRO because of the possibilities to generate more hosts and send email from local applications.

Now i have the problem that i can't access files in a directory.

I have checked indexes under Hosts->Extended which should solve this problem.
But it doesn't. I've found many articles but not anyone that solves my problem. I'm also not a specialist on server, but i think there must be a easy solution even in MAMP it works.

I've read something over Web-sharing but this was not clear described enough.

  • MACOSX: 10.11.2
  • MAMP PRO: 3.5

One failure in the log was:

"Permission denied: file permissions deny server access: /folder/file.js"

But where i can change it generally.

Thanks for your Help. I'm very confused.

codeFragment

Answer

Omonaiye Ola picture Omonaiye Ola · Mar 18, 2017

This worked for me.

  1. Create an index file in the directory, by default Apache is looking for such a file
  2. If you want to access the directory (the list of your files or folders in the directory), just go in Mamp Pro to Hosts >> Advanced and check Indexes.

So simple, no need to go configure any file.