Solved

In Order to Protect a Directory on an Apache HTTPD

Question 7

Multiple Choice

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: 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? A)  The user usera can access the site using the password s3cr3t The user usera can access the site using the password s3cr3t B)  Accessing the directory as usera raises HTTP error code 442 (User Not Existent)  Accessing the directory as raises HTTP error code 442 (User Not Existent)  C)  Requests are respond with HTTP error code 500 (Internal Server Error)  D)  The browser prompts the visitor for a username and password but logins for usera do not seem to work The browser prompts the visitor for a username and password but logins for do not seem to work E)  The web server delivers the content of the directory without requesting authentication 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?


A) The user usera can access the site using the password s3cr3t The user usera can access the site using the password s3cr3t
B) Accessing the directory as usera raises HTTP error code 442 (User Not Existent) Accessing the directory as raises HTTP error code 442 (User Not Existent)
C) Requests are respond with HTTP error code 500 (Internal Server Error)
D) The browser prompts the visitor for a username and password but logins for usera do not seem to work The browser prompts the visitor for a username and password but logins for do not seem to work
E) The web server delivers the content of the directory without requesting authentication

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents