There’s no need to have apache utils or tools to generate a Basic authentication password for nginx. Type the following in bash and replace user with the username you want:
printf "user:`openssl passwd -apr1`\n" >> /etc/nginx/.htpasswd
There’s no need to have apache utils or tools to generate a Basic authentication password for nginx. Type the following in bash and replace user with the username you want:
printf "user:`openssl passwd -apr1`\n" >> /etc/nginx/.htpasswd
To change all the directories to 755 (drwxr-xr-x):
find /mnt/storage -type d -exec chmod 755 {} \;
To change all the files to 644 (-rw-r–r–):
find /mnt/storage -type f -exec chmod 644 {} \;