appstract / laravel-opcache

Laravel Package for OPcache
MIT License
1.33k stars 118 forks source link

The requested URL returned error: 403 Forbidden #27

Closed wooddotdev closed 7 years ago

wooddotdev commented 7 years ago

Works fine on dev and staging but on production get a 403 forbidden error on all commands.

If I hit url I get the following exception report. Only thing I can think of that might have an affect is that I use a floating IP (not same as the server IP).

HttpException in Handler.php line 107:
This action is unauthorized.
in Handler.php line 107
at Handler->render(object(Request), object(AuthorizationException)) in Handler.php line 67
at Handler->render(object(Request), object(AuthorizationException)) in Pipeline.php line 80
at Pipeline->handleException(object(Request), object(AuthorizationException)) in Pipeline.php line 34
at Pipeline->Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in compiled.php line 9948
at Pipeline->then(object(Closure)) in compiled.php line 8226
at Router->runRouteWithinStack(object(Route), object(Request)) in compiled.php line 8217
at Router->dispatchToRoute(object(Request)) in compiled.php line 8207
at Router->dispatch(object(Request)) in compiled.php line 2419
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 3286
at CheckForMaintenanceMode->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9963
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in compiled.php line 9948
at Pipeline->then(object(Closure)) in compiled.php line 2366
at Kernel->sendRequestThroughRouter(object(Request)) in compiled.php line 2350
at Kernel->handle(object(Request)) in index.php line 53
ovanschie commented 7 years ago

Requests are only allowed from the same IP as the server IP. Is it possible to login directly to the server (not the floating IP) and run it from there?

teuunn commented 7 years ago

Closed due to inactivity

litan1106 commented 7 years ago

I got the same error with google compute.

Exception: This action is unauthorized. in /var/www/lpcd-dashboard/vendor/appstract/laravel-opcache/src/Http/Middleware/Request.php:25