Laravel deployed on nginx always appears nginx 403 forbidden
If it is not a permissions issue, it is not an index file issue. That is, laravel's home directory is specified incorrectly. It turns out that the root directory of the laravel program cannot be specified. To be specified in the public directory.
Nginx server
<code> location / { try_files <span>$uri</span><span>$uri</span>/ /index.php?<span>$query_string</span>; }</code>
Copyright statement: This article is the original article of the blogger and may not be reproduced without the permission of the blogger.
The above introduces the handling of nginx 403 forbidden error when laravel is deployed in nginx, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.