Sinsing Analysis of You don ' t has permission to access/on the workaround for this server.

Source: Internet
Author: User
Tags php server

Usually we will encounter "you don't havepermission to access/on this server." The hint, literally, is that we don't have access to this server, so what's the common problem ?

If the first is a virtual host, then it may be a virtual host configuration error, when we configure in <VirtualHost>, in its sub-configuration, we modify in <Directory> as follows:

Order Allow,deny

Allow from all

The second reason is that we do not respond to the file name, for example, I use the Laravel framework, its entry file is server.php, not our popular sense of index.php, then when we visit the framework, we will also report similar errors, we only need to < Ifmodule dir_module> to add the corresponding files in the DirectoryIndex, here is an example:

<ifmodule dir_module>

DirectoryIndex index.html index.htm index.php server.php

</IfModule>


It is important to note that after setting up the configuration item, we also need to reboot the server. Because I use Apache here, so this is relative to Apache, for other servers, there will be similar operations.

Sinsing Analysis of You don ' t has permission to access/on the workaround for this server.

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.