Skip to content

Folder permission

I installed magento2 with LEMP (nginx + php8.1-fpm)

magento root: /var/www/html/

I am trying to add a seperate folder and execute a phpfile inside this folder in magento root:

/var/www/html/mynewfolder

but when i try to open https://example.com/myfolder/connect.php

i am having : 404 error: Page not found.

what should i do?