0
我有一个很大的问题,因为两天后,当我想刷新应用程序时,会话完成现在我得到一个错误502坏的网关ngnix。502错误的网关ngnix与中间件
似乎我的中间件组有一些工作问题。这很奇怪,因为它工作得很好,但是从2天开始它就不再工作了。
在我的路线文件我创建了一个中间件组的应用程序像所有的网页:
Route::group(['middleware' => ['AuthVerif']], function() {
// PAGE ACCEUIL
Route::get('/home', '[email protected]')->name('home');
//PROFILE/STRUCTURE/CLUB
Route::get('profile' , '[email protected]')->name('profile');
Route::get('password' , '[email protected]')->name('password');
Route::get('ma_structure' , '[email protected]');
Route::get('mon_club' , '[email protected]');
...
我中间件AuthVerif:
public function handle($request, Closure $next)
{
if(Auth::guest()){
return redirect(url('/'));
}else
return $next($request);
}
中间件显示登录表单给用户。
有人知道为什么我得到
502网关ngnix。
感谢很多提前
谢谢s!我怎么给红色/写权限的存储和引导 –
如果你使用的是Linux,然后使用下面的命令: 搭配chmod 777 -R FOLDERPATH ,如果你正在使用的窗口命令,然后使用属性选项卡更改安全权限 –
我现在就试试!!!!!! –