nerdexam
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

202-450 question #304 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)
  • A
    75% (18)
  • B
    8% (2)
  • C
    13% (3)
  • E
    4% (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.

Full 202-450 Practice