Solution to the 403 Forbidden Error in apache

Source: Internet
Author: User
Tags 403 forbidden error

Enter the address to display

Forbidden

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

Httpd. conf:

The code is as follows: Copy code

<Directory/>
Options FollowSymLinks
AllowOverride None
Order deny, allow
Deny from all
Satisfy all
</Directory>

Then try

The deny in from all is changed to allow., Save and restart apache, and then test my web page again, haha

Ps 403 prohibits access to Order deny in apache, which is affected by allow deny. To solve this problem, you only need to change deny to allow. Of course, the problem is the server permission.

Make sure that the webfile contains an index.html file (or a file named index with a suffix of another form (such as. jsp. php). For example, if the file is left blank, the above 403 error will occur.

The code is as follows: Copy code

<IfModule dir_module>
DirectoryIndex index.html
</IfModule>

Change to (if you want to use index. jsp ):

The code is as follows: Copy code

<IfModule dir_module>
DirectoryIndex index.html index. jsp
</IfModule>

To browse the content in this folder, you can add the following before </Directory>:

The code is as follows: Copy code

Options Indexes

You can.

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.