How to set up htaccess and htpasswd in my private server?
问题 At the moment I'm trying set up authentication on my test server. The following is the list of files in the folder I'm trying to set up authentication for. sftp://it@192.168.0.157/var/www/secret/.htpasswd sftp://it@192.168.0.157/var/www/secret/.htaccess sftp://it@192.168.0.157/var/www/secret/index.html Here's what .htaccess contains: AuthName "Restricted Area" AuthType Basic AuthUserFile /secret/.htpasswd AuthGroupFile /dev/null <Files test.html> require valid-user </Files> I'm not getting