LPI
202-450 · Question #304
In order to protect a directory on an Apache HTTPD web server with a password, this configuration was added to an .htaccess file in the respective directory: Furthermore, a file /var/www/dir/…
The correct answer is A. The user usera can access the site using the password s3cr3t. You've hit your weekly limit · resets 5am (America/New_York)
HTTP Services
Question
In order to protect a directory on an Apache HTTPD web server with a password, this configuration was added to an .htaccess file in the respective directory: Furthermore, a file /var/www/dir/ .htpasswd was created with the following content: usera:S3cr3t Given that all these files were correctly processed by the web server processes, which of the following statements is true about requests to the directory?
Exhibit
Options
- AThe user usera can access the site using the password s3cr3t
- BAccessing the directory as usera raises HTTP error code 442 (User Not Existent)
- CRequests are answered with HTTP error code 500 (Internal Server Error)
- DThe browser prompts the visitor for a username and password but logins for usera do not seem to
- EThe web server delivers the content of the directory without requesting authentication
How the community answered
(24 responses)- A75% (18)
- B8% (2)
- C13% (3)
- E4% (1)
Explanation
You've hit your weekly limit · resets 5am (America/New_York)
Topics
#Apache HTTPD#.htaccess#HTTP authentication#.htpasswd
Community Discussion
No community discussion yet for this question.
