php artisan route:list
Check if the contents of httpd.conf are as follows.
DocumentRoot "/var/www/html/laravel/public/"
<Directory "/var/www/html/laravel/public"> Allowoverride All
ls /etc/apache2/mods-enabled/
a2enmod rewrite
service apache2 restart or apachectl restart
ls /etc/apache2/mods-enabled/
There seems to be a method that can be done with the RUN command from the dockfile, but this time I used this method.
Reference source http://peacock.ky-3.net/laravel/laravel_404notfound
https://qiita.com/dokkoisho/items/03746e58d975bd7a35ec
Recommended Posts