How to password protect a directory

ARUN Post in LINUX COMMANDS, Uncategorized
0

To add a new user ssh to the server and go to the directory /var/www/vhosts/domain.com/subdomains/subdomainname/httpdocs and execute the following command

htpasswd -mcb .htpasswd <username> <password>

« Prev: :Next »

Leave a Reply

You must be logged in to post a comment.