I installed Magento 2.4.2 successfully, but after installation home page gives error: 404 not found. Please suggest a solution for this.
I have used PHP -7.4 Mysql - 8.0 Nginx 1.18.0
The following is the error
404 Not Found
nginx/1.18.0 (Ubuntu)
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityI installed Magento 2.4.2 successfully, but after installation home page gives error: 404 not found. Please suggest a solution for this.
I have used PHP -7.4 Mysql - 8.0 Nginx 1.18.0
The following is the error
404 Not Found
nginx/1.18.0 (Ubuntu)
The problem you are encountering is due to the change brought in 2.4.2 where the website pages are now served from the /pub
folder. So you need to update your configurations to point to that location.
<magento_proj_folder>/pub
. This should do it :)good luck!