웹 서버
HTTPS 자동 적용 및 간편한 설정이 가능한 최신 웹 서버
Let's Encrypt에서 SSL/TLS 인증서를 자동으로 받아 갱신하며, 별도의 설정이 필요하지 않습니다
작성과 관리가 쉬운 사람이 읽을 수 있는 Caddyfile 형식, 또는 프로그래밍 방식 제어를 위한 JSON
HTTP/2, HTTP/3(QUIC), WebSocket, gRPC 및 기타 최신 프로토콜을 기본으로 지원합니다
로드 밸런싱, 상태 점검, 서킷 브레이커, 능동형/수동형 장애 조치를 갖춘 고급 리버스 프록시
수천 개의 사용자 지정 도메인을 제공하는 SaaS 플랫폼을 위해 온디맨드로 인증서를 발급합니다
연결을 끊거나 다운타임을 일으키지 않고 설정을 원활하게 다시 로드합니다
# Install Caddy from official repository
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt update
sudo apt install caddy
# Or download binary directly
curl -o caddy 'https://caddyserver.com/api/download?os=linux&arch=amd64'
chmod +x caddy
sudo mv caddy /usr/local/bin/
# Verify installation
caddy version빠른 시작(정적 사이트):# Create Caddyfile
cat > Caddyfile <<EOF
example.com {
root * /var/www/html
file_server
}
EOF
# Start Caddy
sudo caddy start
# Or run in foreground
sudo caddy run리버스 프록시 예제:cat > Caddyfile <<EOF
api.example.com {
reverse_proxy localhost:8080
}
EOF
sudo caddy run
# Simple static site with automatic HTTPS
example.com {
root * /var/www/html
file_server
encode gzip
}
# Reverse proxy to backend
api.example.com {
reverse_proxy localhost:3000
}
# Multiple backends with load balancing
app.example.com {
reverse_proxy localhost:8080 localhost:8081 localhost:8082 {
lb_policy round_robin
health_uri /health
}
}
# SPA with fallback
spa.example.com {
root * /var/www/spa
try_files {path} /index.html
file_server
}고급 기능:encode gzip zstd 사용file_server {precompressed gzip br} 설정header 지시문으로 캐싱 헤더 설정
간단한 VPS 배포 프로세스로 몇 분 안에 시작하세요
Deploy in about 2 minutes • Full root access • Support by ticket and email