클라이언트(브라우저) 요청을 받아 HTML, CSS, JS 파일 등 정적 콘텐츠 제공
| 서버 | 설명 |
|---|---|
| Apache HTTP Server | 가장 널리 쓰이는 오픈소스 웹 서버 |
| Nginx | 높은 성능, 리버스 프록시 기능 탁월 |
| Microsoft IIS | Windows 전용 웹 서버 |
| LiteSpeed | 상업용, 고성능 웹 서버 |
Ubuntu (Debian 계열)
sudo apt update
sudo apt install nginx
CentOS / RHEL
sudo yum install ngin
macOS (Homebrew 사용)
brew install nginx
# 예시 구조 (index.html 포함)
웹 루트 디렉토리 (OS별로 위치 다름)
├── index.html
├── styles/
│ └── style.css
└── scripts/
└── app.js