Caddy:
- SSL
- - , HTTP- . HTTP - .
Apache HTTP Server -. 37,3%. Nginx , 32,4%. Microsoft IIS LiteSpeed 7,8% 6,9% 3 4 .
- Caddy. , . - . , .
Caddy?
Caddy - Apache. - Caddy , - , , , , .
Caddy -, SSL/TLS Let 's Encrypt.
Caddy
- HTTP- HTTP/2.
- - .
- TLS . .
- /. .
- .
- .
- /.
- WebSockets - .
- .
- IPv6.
- .
- Fast CGI, , , URL-, Gzip, , .
- - Windows, Linux, BSD, Mac, Android.
Caddy?
- Caddy , 2020 , .
- - HTTP/2, IPv6, , WebSockets, CreateCGI, .
- .
- .
- , .
- .
- - , .
- , , , .
- - Windows, Linux, Mac, Android, BSD.
- Caddy.
- 1 , , .
CentOS, Debian, RHEL Debian. 64- .
- Caddy Linux
Caddy , .
Caddy Fedora, RedHat, CentOS
- Caddy CORP Fedora RHEL/CentOS8.
# dnf install 'dnf-command(copr)' # dnf copr enable @caddy/caddy # dnf install caddy
RHEL/CentOS 7 :
# yum install yum-plugin-copr # yum copr enable @caddy/caddy # yum install caddy
Caddy Debian Ubuntu
$ echo "deb [trusted=yes] https://apt.fury.io/caddy/ /" \ | sudo tee -a /etc/apt/sources.list.d/caddy-fury.list $ sudo apt update $ sudo apt install caddy
- Caddy, systemctl , :
# systemctl start caddy # systemctl enable caddy # systemctl status caddy
, Caddy:
http://Server-IP OR http://yourdomain.com

Caddy
, DNS- A/AAAA DNS. - "example.com" /var/www/html, .
$ mkdir /var/www/html/example.com
SELinux -.
# chcon -t httpd_sys_content_t /var/www/html/example.com -R # chcon -t httpd_sys_rw_content_t /var/www/html/example.com -R
caddy /etc/caddy/Caddyfile
.
# vim /etc/caddy/Caddyfile
:80 /var/www/html/example.com
, .

Caddy:
# systemctl reload caddy
- HTML- ( ) -.
# touch /var/www/html/example.com/index.html
HTML- .
# echo '<!doctype html><head><title>Caddy Test Page at TecMint</title></head><body><h1>Hello, World!</h1></body></html>' | sudo tee /var/www/html/index.html
, :

, HTTPS, SSL .
-, , . , -, Caddy. , , , , , HTTP .
Apache Nginx. Caddy . , -.