./categories/server
Apache IP 접근 제한
IP 표현
단일 IP : 192.0.2.1
복수 IP : 192.0.2.1 192.0.2.2
IP 범위 : 192.0.2.1-192.0.2.255
IP 대역 : 192.0.2.0/24
Apache 2.4 Require 예
<Directory "/var/www/secure">
Require ip 192.0.2.0/24
Require ip 203.0.113.10
</Directory>
# 거부 후 허용
<Location /admin>
Require all denied
Require ip 192.0.2.10
</Location>
2.2 구문(Order/Allow/Deny)은 2.4에서 Require로 교체. 변경 후 apachectl configtest → reload.
관련 링크: https://app.notion.com/p/ebc211562dfc4f28928ecc6d4dc7c4d5
./comments