Magento 2.4.2 – Forbidden error on Nginx because of no index file in root directory

I am getting a 403 forbidden error while opening my website URL on the browser. After so much research I’ve found that the index file is missing from the Magento root directory and it is moved to the pub directory. Can anyone tell me how to solve this error? how can I forward the index request to the pub directory?