I was trying to install Magento 2.4.2 version in a sub directory. Installation completes successfully.
However, I am unable to load front end as well as admin panel. When I install it in a root directory it's working fine.
The base URL must be like this -