Access permission for apache on mac

Source: Internet
Author: User
Youdon & #039; thavepermissiontoaccessonthisserver. How can this problem be solved ??? You don't have permission to access/on this server.
How can this problem be solved ???

Reply content:

You don't have permission to access/on this server.
How can this problem be solved ???

This is a problem with no permissions. the status code is 403, which is due to the following reasons:

1. This directory does not have permission in the file system. The method isSudo chmod-R 777 directory name

2. You do not have the access permission for this ip address in Apache. AddAllow from All(All is for All ip addresses)

3. If you are accessing a directory rather than a file, you must have the permission to list the files by running AddOptions Indexes

4. Apache configuration may existRequire all deniedAll requests are forbidden and must be used in the accessed directory.Require all grantedTo grant permissions.

You may need to check apache configuration:/private/etc/apache2/httpd.conf

There may also be the file read and write permissions you want to access. Find the file,command+iLet's take a look at the bottom of the list.

If this is not the case, it is yours.ApacheThe configuration is incorrect.

You do not have permission! Look at your apacheDocumentRootFolder permissions.
Of course, sometimes this error is not reportedDocumentRootFolder permissions are insufficient, depending on your specific situation.

Check the commands and DocumentRoot directory settings in the Apache configuration file and the directory permissions.

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.