nerdexam
CompTIA

LX0-104 · Question #229

In apache configuration which directives are used to restrict access based on host/domain name and IP address?

The correct answer is B. order, allow from and deny from. Apache uses a combination of directives to control access based on hostname, domain, or IP address, allowing administrators to define specific rules for permitted or denied access.

Essential System Services

Question

In apache configuration which directives are used to restrict access based on host/domain name and IP address?

Options

  • Arestrict and allow
  • Border, allow from and deny from
  • Cdeny and accept
  • Dallow IP, deny IP, allow DOMAIN and deny DOMAIN
  • Eorder, deny and accept

How the community answered

(59 responses)
  • A
    3% (2)
  • B
    88% (52)
  • D
    7% (4)
  • E
    2% (1)

Why each option

Apache uses a combination of directives to control access based on hostname, domain, or IP address, allowing administrators to define specific rules for permitted or denied access.

Arestrict and allow

`restrict` is not a standard Apache directive used for host-based access control.

Border, allow from and deny fromCorrect

The `order` directive determines the sequence in which `allow from` and `deny from` directives are processed. `allow from` specifies hosts, domains, or IP addresses that are permitted access, while `deny from` specifies those that are denied access, forming the standard mechanism for host-based access control in Apache.

Cdeny and accept

While `deny` is used, `accept` is not a recognized Apache directive for this purpose.

Dallow IP, deny IP, allow DOMAIN and deny DOMAIN

These are not the correct directive names; the proper syntax involves `allow from` and `deny from`.

Eorder, deny and accept

While `order` and `deny` are correct, `accept` is not a valid Apache directive for access control.

Concept tested: Apache HTTP Server access control directives

Source: https://httpd.apache.org/docs/2.4/mod/mod_authz_host.html

Topics

#Apache configuration#access control#IP filtering#domain filtering

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice