Apache Logo

Apache 2.4 authz_core:error

ついいつもの癖でアクセス制御をうっかり記述すると

authz_core:errorが発生します。

これは2.4系から変更になっておりドキュメントによると次のように記述するようになっています。

In this example, all requests are denied.

2.2 configuration:

Order deny,allow
Deny from all
2.4 configuration:

Require all denied
In this example, all requests are allowed.

2.2 configuration:

Order allow,deny
Allow from all
2.4 configuration:

Require all granted
In the following example, all hosts in the example.org domain are allowed access; all other hosts are denied access.

2.2 configuration:

Order Deny,Allow
Deny from all
Allow from example.org
2.4 configuration:

Require host example.org