프로그래밍 노트/인프라
Apache 2.4 접근제어(Access Control)
깡냉쓰
2019. 11. 3. 21:03
728x90
반응형
apache 2.2와 비교하여 apache2.4에서 access control 문법이 변경되었다.mode_access_compat.so
apache 모듈이 설치되어 있으면, 2.2 문법도 사용할 수 있다.
// 2.2 의 문법
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
// 2.4의 문법
<Location /server-status>
SetHandler server-status
Require all denied
Require ip 127.0.0.1
</Location>
<FilesMatch "^\.ht">
Require all denied
Satisfy All
</FilesMatch>
728x90
반응형