Nginx returning 403 forbidden

76 Views Asked by At

I put a laravel application on a production environment, but the root route (/) is returning 403 Forbiddem, all the other routes work fine! I just can't figure out what I am missing out.

It also works fine on development/local machine.

Here is my routes file:

...
Route::get('/', function () {
    return redirect('/login');
});

Auth::routes();


Route::group([ 'middleware' => 'auth'], function(){
    Route::get('/home', 'HomeController@index');
    ...
});
...

0

There are 0 best solutions below