Cloud & Platform
Web Server 실습
Web Server 실습 학습 내용을 정리한 백필 노트입니다.
이 글은 2025년 학습 기록을 블로그 형식으로 정리한 백필 노트입니다.
1. Web Page 확인
- IIS Web Server 확인
http://<내부망 IP>http://<외부망 IP>
- NGINX Web Server 확인
http://<내부망 IP>http://<외부망 IP>
2. 실습 기본 설정
- 실습 내용: day01 구성
- 지역(Region):
East US 2
3. 네트워크 구성
- 가상 네트워크
vnet-us2cen-00 (10.0.0.0/16)
- 서브넷
snet-us2cen-00 (10.0.0.0/24)→ Windows Serversnet-us2cen-01 (10.0.1.0/24)→ Windows Client (Web Page Test)snet-us2cen-02 (10.0.2.0/24)→ Linux Server
- 선택 사항
- IIS Web Server를 PowerShell Script로 구성
- Ubuntu Linux Web Server는 Apache2로 구성
4. IIS Web Server (Windows Server, PowerShell)
# IIS 설치
Install-WindowsFeature -Name Web-Server -IncludeManagementTools
# 웹 페이지 파일 생성
Set-Content -Path "C:\inetpub\wwwroot\index.htm" `
-Value "<html><head><title>Hong's Page</title></head><body><font color='blue'>Hello $($env:computername) - IIS Web Server !!</font></body></html>"
5. Linux Web Server (Ubuntu, NGINX)
# 패키지 소스 업데이트
sudo apt-get -y update
# NGINX 설치
sudo apt-get -y install nginx
# 웹 페이지 파일 생성
sudo sh -c 'echo "<html><head><title>Hongs Page</title></head><body><font color='red'>Hello host $(hostname) - NGINX Web Server !!</font></body></html>" > /var/www/html/index.html'
6. Web Page 접속 확인
curl http://localhost
curl http://172.16.1.6