Apache HTTPD Webサーバーのディレクトリをパスワードで保護するために、この構成はそれぞれのディレクトリの.htaccessファイルに追加されました: さらに、/ var / www / dir / .htpasswdというファイルが次の内容で作成されました: usera:S3cr3t これらのファイルがすべてWebサーバープロセスによって正しく処理されたとすると、次のステートメントのどれがディレクトリへの要求についは正しいですか?
正解:A
Explanation The .htaccess file in the directory is configured to require a valid user. The .htpasswd file contains the username and password for usera. Therefore, usera can access the site using the password s3cr3t. References: LPIC-2 Overview LPIC-2 202-450 Password Protecting Your Pages with htaccess