Nginx → Caddy v2 Converter

Idiomatic, secure Caddyfile generation for DevOps, sysadmins & homelabs

Free Mode Get Pro Key
Nginx Configuration (nginx.conf)
0 lines
Generated Caddyfile (Caddy v2)
Ready

Translation Diagnostics & Caddy v2 Optimizations

⚡

Zero-Config Automatic TLS

Explicit ssl_certificate directives are cleanly removed. Caddy automatically provisions and renews Let’s Encrypt / ZeroSSL certificates.

⇄

Modern Reverse Proxy

proxy_pass and standard WebSocket headers are simplified to Caddy’s native reverse_proxy with active health checking.

🐘

PHP-FPM Standardization

try_files + fastcgi_pass are consolidated into Caddy’s idiomatic php_fastcgi directive with standard split paths.

Quick Reference: How Directives Map to Caddyfile
Nginx DirectiveCaddy v2 DirectiveBehavior / Benefit
listen 80; listen 443 ssl;(implicit or host based)Caddy manages ports 80 & 443 with automated HTTPS & HTTP->HTTPS redirects.
server_name example.com;example.com { ... }Site block addresses serve as primary domain matchers.
proxy_pass http://127.0.0.1:8080;reverse_proxy 127.0.0.1:8080Preserves headers, supports WebSockets out-of-the-box.
try_files $uri $uri/ /index.php;try_files {path} {path}/ /index.phpHandled directly or natively within php_fastcgi.
gzip on; gzip_types ...encode zstd gzipAdds modern high-ratio zstandard compression alongside standard gzip.
upstream cluster { ... }reverse_proxy srv1 srv2 { lb_policy round_robin }First-class load balancing without standalone upstream definitions.