: 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.