Insert the following after index and before location, then save and restart.
There has been a change in Elastic beanstalk. It is now configured to nginx instead of apache so the .htaccess file no longer works. All laravel routes are getting 404 Not Found Nginx error except for the landing page.
Anyway, I created a brand new Laravel app and pulled a repo on it called rennokki/laravel-aws-eb and I was able to deploy without any problem. There might be something wrong in my app, not in the deployment process itself. Since it's still a small app I think that I'll recreate it...
I have the same problem
I was able to fix it. This is what I did.
cd /etc/nginx/conf.d/elasticbeanstalk - Navigate to the php.conf file
sudo nano php.conf - open the file
location / {
try_files $uri $uri/ /index.php?$query_string;
gzip_static on;
}
Insert the following after index and before location, then save and restart.
There has been a change in Elastic beanstalk. It is now configured to nginx instead of apache so the .htaccess file no longer works. All laravel routes are getting 404 Not Found Nginx error except for the landing page.
Thank you for your answer but it didn't work...
😯😯... how about this? morioh.com/p/d676c8f9ab31
or
stackoverflow.com/questions/616407...
Tried both but didn't work :/
Anyway, I created a brand new Laravel app and pulled a repo on it called rennokki/laravel-aws-eb and I was able to deploy without any problem. There might be something wrong in my app, not in the deployment process itself. Since it's still a small app I think that I'll recreate it...
Thanks for trying to help!
nice :)