NamelessMC

Internet Explorer

Internet Explorer is not supported. Please upgrade to a more modern browser.

Using Caddy as your webserver
Started by RosesWilt

RosesWilt

RosesWilt

Member
Joined
19 Jun 2024
Last Seen
24 Aug 2024
Topics
1
Posts
1

This guide assumes you've followed the installation guide until the webserver chapter.

What is Caddy? Why Caddy?

Caddy is an alternative webserver and reverse proxy. It has automated HTTPS and certificate deployment, automated HTTP/3 negotiation, and automated proxy headers.

The biggest reason to use Caddy is it's ease of configuration.

Pitfalls / Caveats

Caddy typically runs under the caddy user and group- unlike nginx which runs under www-data user (or http on some distros.) On Debian, caddy is automatically assigned to the www-data group, which should allow you to follow the install tutorial the same. However, if you run into issues, please view this part of the gist: https://gist.github.com/CodingWithAnxiety/9ac0b17472fcbe13550add3df9c23e41#21-setting-up-permissions

Guide

For the sake of formatting, I've posted the guide in full as a github gist.

https://gist.github.com/CodingWithAnxiety/9ac0b17472fcbe13550add3df9c23e41

x2
RosesWilt · 4 months ago · Last edited: 4 months ago
Namasterful

Namasterful

Member
Joined
19 Sep 2024
Last Seen
22 Sep 2024
Topics
0
Posts
1

Thanks for this, I was trying to set it up with caddy but kept running into issues and this worked flawlessly!

Namasterful · 3 months ago