RHCE – Controlling access using Apache’s Order, Deny, and Allow directives on CentOS/RHEL 7

Apache let’s you Allow/Deny access based on who is requesting access using the Order directive which is used in conjunction with the Allow and Deny directives.

You can sepcify multiple Allow and Deny rules like this:

Deny from {ip address}
Allow from {192.168.10.0/24}
Deny from dodgydomain.com


Order deny,allow

Take the RHCSA Quiz

This article is part of our RHCSA Study guide (click on the yellow tab on the far left). By the end of this article you should be able to answer the following questions:


question?

answer

question?

answer

question?

answer

question?

answer

question?

answer

question?

answer

question?

answer