nginx file permission
cd /home/user/domains/domain.com/public_html find . -type d -exec chmod 0755 {} \; find . -type f -exec chmod 0644 {} \;
Here is what the above code is Doing:
1. Change the directory to the public_html folder of the domain.
2. Find all directories and change the permissions to 0755.
3. Find all files and change the permissions to 0644.