You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rob Hartill <ro...@imdb.com> on 1997/05/28 15:31:04 UTC
Apache's order/allow/deny Truth Table (fwd)
I thik he's suggesting this be added to the docs.
(note the 'tenon' sender :-)
---------- Forwarded message ----------
Date: Tue, 27 May 1997 21:57:27 -0700
From: Brent Holland <br...@tenon.com>
To: apache-bugs@mail.apache.org
Subject: Apache's order/allow/deny Truth Table
Forwarded from neil@tenon.com (Neil CutCliffe):
Being confused about the meaning of the "mutual-failure"
mode for Apache's "order" directive, I experimented with
each possible combination and filled in the following
Truth table.
In the first two rows (4 combinations for allow and deny):
1 - directive (allow or deny) is true for my client
0 - otherwise
In the latter three rows (each mode of "order" directive):
1 - access using the above allow and deny combination
succeeded for that "order".
0 - access failed
+-----------------+-----+-----+-----+-----+
| allow | 0 | 1 | 0 | 1 |
| deny | 0 | 0 | 1 | 1 |
+-----------------+-----+-----+-----+-----+
| allow/deny | 0 | 1 | 0 | 0 |
| deny/allow | 1 | 1 | 0 | 1 |
| mutual-failure | 0 | 1 | 0 | 0 |
+-----------------+-----+-----+-----+-----+
For my experiments, "allow/deny" and "mutual-failure"
yeild the same results. The "mutual-failure" appears
to be redundant and therefore unnecessary.
Neil Cutcliffe neil@tenon.com
Tenon Intersystems http://www.tenon.com
1123 Chapala St. Suite 200 805 963 6983
Santa Barbara, CA 93101 805 962 8202 fax