Apache2.4のアクセス制限

カテゴリ Apache2.4 コアバージョン 7.50 関連モジュール

Apache2.2までとの違い、Basic認証と併用など

コメント

ユーザー actbrain の写真

■ 全て許可する
- Apache2.2
-- Order Deny,Allow
- Apache2.4
-- Require all granted

■ 一部のIPのみ許可する
- Apache2.2
-- Order Allow,Deny
-- Allow from 172.0.0.1
- Apache2.4
-- Require all denied
-- Require ip 127.0.0.1

■ Basic認証または一部のIPから許可
- Apache2.2
-- Satisfy Any
--
-- AuthUserFile /etc/httpd/conf/.htpasswd
-- AuthGroupFile /dev/null
-- AuthName "Basic Auth"
-- AuthType Basic
-- Require valid-user
--
-- Order Allow,Deny
-- Allow from 172.0.0.1
- Apache2.4
-- <RequireAny>
--- AuthUserFile /etc/httpd/conf/.htpasswd
--- AuthGroupFile /dev/null
--- AuthName "Basic Auth"
--- AuthType Basic
--- Require valid-user
---
--- Require all denied
--- Require ip 127.0.0.1
-- </RequireAny>

ページ

OTHER FAQ