아파치(Apache) 웹서버 설치 및 VirtualHost 보안 설정

💡 핵심 요약 (Executive Summary)

본 가이드는 Apache Webserver 핵심 가이드 및 실전 아키텍처의 핵심 개념, 실전 구성 명령어 및 아키텍처 베스트 프랙티스를 다룹니다. 클라우드 네이티브 및 인프라 엔지니어링 실무에 즉시 활용 가능하도록 체계적으로 정리했습니다.

📑 Table of Contents

RHEL

bash
mkdir -p /var/www/html/packages

yum install httpd
yum install firewalld

systemctl start httpd
systemctl enable httpd
systemctl start firewalld
systemctl enable firewalld

# 방화벽 세팅
firewall-cmd --zone=public --permanent --add-service=http
firewall-cmd --zone=public --permanent --add-service=https
firewall-cmd --reload

# 설정파일 확인
vim /etc/httpd/conf/httpd.conf
주요 경로
bash
# 액세스로그
/var/log/apache2/

# Configs
/etc/apache2/
Features
wget요청한 IP 확인
bash
cat /var/log/apache2/access.log | grep Wget
zcat /var/log/apache2/access.log.1.gz | grep Wget

참고 자료

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *