MAMP & quot; 403 ForbiddenYoudon & #39; thavepermis

Source: Internet
Author: User
When using MAMP to build a local server, after setting the ip and port properties, the browser access, reported 403 error: ForbiddenYoudonthavepermissiontoaccessonthisserver. google, stackoverflow existing class problems: stackoverflow. comquestions10873295error-message

When using MAMP to build a local server, after setting the ip and port attributes, the browser will access the server and report the error 403: Forbidden You don't have permission to access/on this server. after google, stackoverflow has a class problem: http://stackoverflow.com/questions/10873295/error-message

When a local server is built with MAMP, the browser accesses the server after setting properties such as ip address and port, and reports error 403:

Forbidden

You don't have permission to access/on this server.

After google, stackoverflow has a similar problem: http://stackoverflow.com/questions/10873295/error-message-forbidden-you-dont-have-permission-to-access-on-this-server

The following methods are used:

Run the following section in/Application/MAMP/conf/apache/httpd. conf:



Options FollowSymLinks
AllowOverride All
Order deny, allow
Allow from all

Set the options to: Options Indexes FollowSymLinks between des ExecCGI


Changed:


# Options FollowSymLinks
Options Indexes FollowSymLinks between des ExecCGI
AllowOverride All
Order deny, allow
Allow from all


Some people also raised the issue of access permissions, that is, the process owner has no permission to access Document root. The original statement is as follows:

Also, one shocould check the folder's permissions so that the Apache process 'owner has permissions to read/execute the specified path for the virtual host. on Windows this cocould rarely be a problem but on Linux it can be a more frequent cause of 403.


When I saw this, I thought that I had set the Document root on the desktop. When I access Document root directly, an error is returned. If you access a file in the directory, there is no problem.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.