MAMP "403 Forbidden you don't have permission to access/on this server."

Source: Internet
Author: User
Tags mongodb postgresql


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."


Alibaba Cloud Hot Products

Elastic Compute Service (ECS) Dedicated Host (DDH) ApsaraDB RDS for MySQL (RDS) ApsaraDB for PolarDB(PolarDB) AnalyticDB for PostgreSQL (ADB for PG)
AnalyticDB for MySQL(ADB for MySQL) Data Transmission Service (DTS) Server Load Balancer (SLB) Global Accelerator (GA) Cloud Enterprise Network (CEN)
Object Storage Service (OSS) Content Delivery Network (CDN) Short Message Service (SMS) Container Service for Kubernetes (ACK) Data Lake Analytics (DLA)

ApsaraDB for Redis (Redis)

ApsaraDB for MongoDB (MongoDB) NAT Gateway VPN Gateway Cloud Firewall
Anti-DDoS Web Application Firewall (WAF) Log Service DataWorks MaxCompute
Elastic MapReduce (EMR) Elasticsearch

Alibaba Cloud Free Trail

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.