1

I am getting a 403 forbidden error while opening my website URL on the browser. After so much research I have 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?

2
  • are you creating a virtual host in ngnix?
    – Waqar Ali
    Commented Jun 7, 2021 at 13:39
  • yes I am using a virtual host in Nginx Commented Jun 7, 2021 at 14:03

1 Answer 1

1

The issue should be solved if you go to the nginx configurations and set the root directive to point to the <magento_folder>/pub. Don't forget to reload nginx afterwards.

Some resources:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.