Admin 404 page – Magento 2.3.2


I have installed Magento 2.3.2 on Ubuntu VM. I am using nginx server and php version 7.2. My frontend was messed up when I installed but I was able to fix it but my admin is still showing 404 error and is just loading the default Magento 404 page. As it is reaching showing the Magento 404 page, I assume it is not something to do with nginx config. I have pointed my nginx root to /var/www/html/{my_project_dir}. So I am accessing the page with http://localhost:8080/ -> the home page and other pages are loading fine except the admin page. I am accessing the admin using http://localhost:8080/admin. I also tried http://localhost:8080/index.php/admin, http://localhost:8080/admin/index, http://localhost:8080/admin/index/index

PS: I am using nginx and not Apache. I tried the same using Apache too but it didn’t work (with mod_rewrite set).