Forbidden error Laravel 403

As the name says, I got error 403 (page name) of the Laravel project. It works locally, but when I try to put it live, on the web host / my domain it gives me:

Forbidden
You do not have permission to access this server. In addition, when trying to use ErrorDocument to process a request, a 404 Not Found error was detected.

I deleted the file .htaccessfrom the shared folder and nothing happened. Any solutions?

+3
source share
2 answers

.htaccess apache, AllowOverride All . Laravel .htaccess. . apache , .htaccess.

<VirtualHost *:80>
    ServerName www.example.net
    DocumentRoot "/var/www/html/example3"
    <Directory /var/www/html/example3>
         DirectoryIndex index.php
         AllowOverride All
         Require all granted
    </Directory>
</VirtualHost>

apache sudo service apache2 restart.

www.example.net /var/www/html/example3 .

+2

, , true:

public function authorize()
{
    return true;
}

!

0

Source: https://habr.com/ru/post/1673168/


All Articles