Files
kngil_home/kngil/.htaccess
2026-01-30 17:20:52 +09:00

25 lines
688 B
ApacheConf

# --------------------------------------------------
# 기본 보안 설정
# --------------------------------------------------
# 디렉토리 목록 노출 방지
Options -Indexes
# 기본 인덱스 파일 고정
DirectoryIndex index.php
# 서버 정보 노출 방지
ServerSignature Off
# --------------------------------------------------
# 민감 파일 직접 접근 차단
# --------------------------------------------------
<FilesMatch "\.(env|ini|log|sql|bak|sh|inc)$">
Require all denied
</FilesMatch>
# --------------------------------------------------
# PHP 설정 (가능한 경우)
# --------------------------------------------------
php_flag display_errors Off