Instructions on how to set this up manually on the server for other directories.
1) Place the following in a text file called '.htaccess' under the directory you wish to password protect, replacing "USERNAME" with your username and "HTACCESS_USERNAME" with the username you wish to grant access to:
AuthUserFile /home/USERNAME/.htpasswd
AuthGroupFile /dev/null
AuthName ByPassword
AuthType Basic
require user HTACCESS_USERNAME
2) Login to your domain via ssh and run the following command. This will create a .htpasswd file and an htaccess user.
htpasswd -c /home/USERNAME/.htpasswd HTACCESS_USERNAME
0 comments:
Post a Comment