Install Caddy Web Server

Caddy is a light weight web server written in golang. Caddy auto generate SSL for your web site using LetsEncrypt and support HTTP/2.

To instal Caddy, download latest Caddy release from github

https://github.com/caddyserver/caddy/releases/

At the time of this post, 1.3 is latest stable release, to install it, run

Make caddy listen to privilage ports 80 and 443

If you don’t have a system user for caddy to run as, create one

Create config folder for caddy

Create Caddy config file

Add

Replace lab.serverok.in with whatever domain you need to host.

Create service file for caddy

Add following

Set permission

Start caddy with

Enable caddy start on boot

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *