Starting caddyfile with a comment

Can you confirm?

I just tried to run caddy with a caddyfile that starts with a comment.
Doesn’t work.
Leaving comment out, does.
Took me a while to figure out, just in case anybody else is wondering.

# ––––––––––––––––––––––––––––––––––––––––––––
#  some comment on the very top of Caddyfile
# ––––––––––––––––––––––––––––––––––––––––––––

... caddyfile-stuff here ...

What do you mean “doesn’t work”? What’s your Caddyfile?

(Works for me.)

sorry for noise.
My bad.
I had another typo in the file

1 Like

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