Web Servers & Containers
Modern web server with automatic HTTPS and easy configuration
Automatic SSL/TLS certificate obtainment and renewal from Let's Encrypt with zero configuration
Human-readable Caddyfile format that's easy to write and maintain, or JSON for programmatic control
Native support for HTTP/2, HTTP/3 (QUIC), WebSocket, gRPC, and other modern protocols
Advanced reverse proxy with load balancing, health checks, circuit breakers, and active/passive failover
Issue certificates on-demand for SaaS platforms with thousands of custom domains
Gracefully reload configuration without dropping connections or causing downtime
# 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 versionQuick Start - Static Site:# 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 runReverse Proxy Example: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_check /health
}
}
# SPA with fallback
spa.example.com {
root * /var/www/spa
try_files {path} /index.html
file_server
}Advanced Features:encode gzip zstd for better compressionfile_server {precompressed gzip br} for pre-compressed assetsheader directive to set caching headers
Get started in minutes with our simple VPS deployment process
Deploy in about 2 minutes • Full root access • Support by ticket and email