Handling nginx403forbidden errors when laravel is deployed on nginx

Source: Internet
Author: User
Tags 403 forbidden error
: This article describes how to handle nginx403forbidden errors when laravel is deployed on nginx. For more information about PHP tutorials, see. When laravel is deployed in nginx, nginx 403 forbidden always appears.

If it is not a permission issue, it is not an index file issue. That is, the main directory of laravel is specified incorrectly. You cannot specify the root directory of the laravel program. To specify the public directory.

Nginx server

Location/{try_files $ uri // index. php? $ Query_string ;}

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

The preceding section describes how to handle the nginx 403 forbidden Error when laravel is deployed on nginx. It includes some content and hopes to help anyone interested in the PHP Tutorial.

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.