When laravel is installed on the apache server of ubuntu, the page displays 403 forbidden.

Source: Internet
Author: User
For example, the webpage also displays Youdon & #039; thavepermissiontoaccessonthisserver. laravel is installed according to the steps on the official website, mod_rewrite is enabled, and. htaccess is also changed, which is useless. What is the root directory of the laravel framework? Why... as the question is, the page also displays You don't have permission to access/on this server.
Laravel is installed according to the steps on the official website, mod_rewrite is enabled, and. htaccess is also changed. It is useless.
What is the root directory of the laravel framework? Why is there no index. php In the root directory?
Please answer.

Reply content:

For example, the webpage also displays You don't have permission to access/on this server.
Laravel is installed according to the steps on the official website, mod_rewrite is enabled, and. htaccess is also changed. It is useless.
What is the root directory of the laravel framework? Why is there no index. php In the root directory?
Please answer.

First, check the Apache configuration file http. conf.


      Options FollowSymLinks    AllowOverride None    Order deny,allow    Deny from all

Find the code above, if it isDeny from all, Modifyallow from allTry


      Options FollowSymLinks    AllowOverride All    Order deny,allow    allow from all

LaravelThe running will loadpublicUnderindex.php.urlTheRoutingConvertController.

This is a permission issue. You should check the status code table to explain it.

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.