Home > Backend Development > PHP Tutorial > How to handle the nginx 403 forbidden error when laravel is deployed on nginx

How to handle the nginx 403 forbidden error when laravel is deployed on nginx

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-08-08 09:22:00
Original
2338 people have browsed it

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>
Copy after login

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.

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Error restarting nginx
From 1970-01-01 08:00:00
0
0
0
server - Nginx configuration webapp problem
From 1970-01-01 08:00:00
0
0
0
Nginx default.conf problem
From 1970-01-01 08:00:00
0
0
0
centos7 - NGINX exception occurs
From 1970-01-01 08:00:00
0
0
0
nginx load balancing
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template