January 22, 2015 17:27:31Hits: 3488
When using Mamp to build the local server, set the IP and Port properties, browser access, reported 403 error:
Forbidden
You don't have permission to access/on the this server.
After Google, StackOverflow already had a similar problem: http://stackoverflow.com/questions/10873295/ Error-message-forbidden-you-dont-have-permission-to-access-on-this-server
There are mainly the following methods:
The following section in the/application/mamp/conf/apache/httpd.conf
<directory/>
Options FollowSymLinks
AllowOverride All
Order Deny,allow
Allow from all
</Directory>
Set the options to:options Indexes followsymlinks includes execcgi
Change to:
<directory/>
#Options FollowSymLinks
Options Indexes FollowSymLinks includes execcgi
AllowOverride All
Order Deny,allow
Allow from all
</Directory>
It is also suggested that the access rights issue is that the owner of the process does not have access to the document root, as follows:
Also, one should check the folder ' s permissions so, the Apache process ' owner have permissions to read/execute the spec Ified path for the virtual host. On the Windows this could rarely is a problem but on Linux it can is a more frequent cause of 403.
I realized that I had the document root on my desktop. And I directly access the document root, the error. If you have access to a file in the directory, there is no problem.
MAMP "403 Forbidden you don't have permission to access/on this server."