cbil360's avatar

Lumen 404 Error

Lumen throwing 404 error when accessing "localhost/lumen", but works fine when accessed with artisan serve i.e. "localhost:8000" . What can be the reason behind this?

0 likes
2 replies
bobbybouwmann's avatar

Did you update your hosts file to point that url to the project?

cbil360's avatar

@bobbybouwmann I am not creating any virtual host which would have required me to update host file with ip and hostName. I am on local machine where lumen resides in www/lumen. To access Root of lumen, if i hit http://localhost/lumen/public . It throws 404 with trace

Sorry, the page you are looking for could not be found.

1/1 NotFoundHttpException in Application.php line 1136: in Application.php line 1136 at Application->handleDispatcherResponse(array('0')) in Application.php line 1095 at Application->dispatch(null) in Application.php line 1035 at Application->run() in index.php line 28

Is there any, setting or uncommenting require in bootstrap\app. Problem coming just after $app->run();

Please or to participate in this conversation.