Check that mod_rewrite is enabled in apache.
urls don't fire routes, but return 404
I have a Centos/apache server with laravel app installed in /var/www/html/centraladmin. My document root is /var/www/html/centraladmin/public.
When I point the browser to the top URL/ I properly get the route for /
When I point the browser to /foo, I don't match the 'foo' route, but instead log a 404. The error log shows
[Thu Jul 19 14:58:56.638606 2018] [core:info] [pid 8195] [client 127.0.0.1:34800] AH00128: File does not exist: /var/www/html/centraladmin/public/foo, referer: https://local.centraladmin.com/
Other servers that have this code checked out work fine.
I've reviewed httpd.conf, .env, permissions, everything I can think of.
One problem I have is that I don't understand why it SHOULD work. There is no .htaccess file. The Request Lifecycle doc says "The entry point for all requests to a Laravel application is the public/index.php file. All requests are directed to this file by your web server (Apache / Nginx) configuration." There doesn't seem to be anything in my working installations that would cause a rewrite to occur, although in all other servers, it always has worked.
Any suggestions welcome.
Ed Greenberg
Please or to participate in this conversation.