Get v2 Basic Caddyfile working

1. Caddy version (caddy version):


2. How I run Caddy:

in a FreeNAS jail

a. System environment:

FreeNAS 11.3U4.1

b. Command:

service caddy start
service caddy reload when changing the Caddyfile

c. Service/unit/compose file:

paste full file contents here

d. My complete Caddyfile or JSON config:

*:80 {
	root * /usr/local/www/html

3. The problem I’m having:

I’m trying to get a basic web page to show up in my html folder called index.html

A Simple HTML Document
<p>This is a very simple HTML document</p>
<p>It only has two paragraphs</p>

4. Error messages and/or full log output:

5. What I already tried:


:2020 {
  respond "Hello, world!"


6. Links to relevant resources:

Can’t get started with v2

I don’t think the * is valid here. Instead, just use :80.

This topic was automatically closed after 30 days. New replies are no longer allowed.