#New Project - 404 on sub routes

10 messages · Page 1 of 1 (latest)

eternal nacelle
#

Hello there,
I just created a new laravel project with jetstream and apache2.

I'm able to open the main page (public/index.php) but thats it.
Every other route shows a 404.

I made sure the routes do show up using php artisan route:list.

Apache2 conf:

 <VirtualHost *:80>
    ServerName ccs
    ServerAlias www.ccs
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/ccs/public
    <Directory /var/www/ccs>
        Options Indexes MultiViews
        AllowOverride None
        Require all granted
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Maybe I'm missing something obvious - any help appreciated.

full steeple
#

Not very familiar with Apache configs, but wouldn't AllowOverride None cause it to ignore the .htaccess in the Laravel public folder?

eternal nacelle
#

I'm not sure, but even without that, or without the Directory option itself, all routes except / are throwing a 404

full steeple
#

You tried AllowOverride All?

#

Is it the Laravel 404 page, or the Apache one you're seeing?

eternal nacelle
#

apache

#

so apache probably doesnt like my conf

#

AllowOverride All makes nothing show up at all

#

not even the main page

#

fixed