We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<Directory /var/www/auth_test> Options Indexes AllowOverride AuthConfig Order allow,deny Allow from all </Directory>
AuthName "sys" AuthType Basic AuthUserFile /var/www/auth_test/.htpasswd require user leon
第一行无关紧要,在某些浏览器会显示这个 第四行为登录的用户名
htpasswd -c /var/www/auth_test/.htpasswd leon
注意:这个密码文件命名要和第二步的配置名字一样
/etc/init.d/apache2 restart
The text was updated successfully, but these errors were encountered:
No branches or pull requests
第一行无关紧要,在某些浏览器会显示这个
第四行为登录的用户名
注意:这个密码文件命名要和第二步的配置名字一样
The text was updated successfully, but these errors were encountered: