Where can I find the Caddyfie

I cannot find a file named Caddyfile after extracting the tar.gz file.
There is a folder named init with five folders. None of them contain a file named Caddyfie.

You need to create it yourself.

Ref:
https://caddyserver.com/tutorial/caddyfile
https://caddyserver.com/docs/http-caddyfile

There’s an advanced demo for loginsrv here that may be helpful to see a bit how it can be configured:

Thank you for clarifying.
Shouldn’t this be stated in the Getting started documentation?

The best place to go is the beginner tutorial:

The Caddyfile is a text file that tells Caddy how to serve. It usually lives next to your site. Let’s make one:

https://caddyserver.com/tutorial/beginner#configure

The above quote is followed by a code box with examples for Windows, macOS, and Linux.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.