Which statement describes the outcome?

Examine the UserDir directives in this extract from /etc/httpd/conf/httpd.conf:
<IfModule mod_userdir.c>
UserDirenabled user1
UserDirdisabled user1
UserDirpublic_html
</IfModule>
The web server URL is http://host01.
A website server URL is http://host01.
A user attempts to access user1’s webpages using this URL:

httpd:/host01/~user1
Which statement describes the outcome?

Examine the UserDir directives in this extract from /etc/httpd/conf/httpd.conf:
<IfModule mod_userdir.c>
UserDirenabled user1
UserDirdisabled user1
UserDirpublic_html
</IfModule>
The web server URL is http://host01.
A website server URL is http://host01.
A user attempts to access user1’s webpages using this URL:

httpd:/host01/~user1
Which statement describes the outcome?

A.
The occurrence user1 in the list of disabled users causes an access denied error to the website
contained in user1’1 public_html subdirecroty, overriding the enabled directive.

B.
The occurrence of user1 in the list of enabled users allows access to the website contained in
user1’s public_html subdirectory, overriding the disabled directive.

C.
The configuration produces an error upon web server startup, because the enabled and
disabled directive conflict.

D.
Access is guaranteed because the UserDir public_html directive applies default access to all
local users on the system, overriding the enabled of disabled directive.

Explanation:



Leave a Reply 4

Your email address will not be published. Required fields are marked *


Jef Adams

Jef Adams

According to me httpd.conf is read sequentially so disable will override enable
–> answer A

some.guy

some.guy

* The keyword ‘disabled’ followed by a space-delimited list of
usernames. Usernames that appear in such a list will never have directory
translation performed, even if they appear in an ‘enabled’ clause.