Can't find where the default folder of Caddy on Ubuntu server

I’m type this:

caddy environ

And the results is:


When I’m doing:

cd /home/ubuntu/.local/share/caddy

I’m getting:

-bash: cd: /home/ubuntu/.local/share/caddy: No such file or directory

Where can I see the DATA folder of Caddy?


That’s the environment of Caddy if it were to run as your ubuntu user.

Caddy when running as a systemd service (as we know from your other topic) runs as the caddy user. The $HOME for that user is /var/lib/caddy.

Look at Caddy’s logs from the systemd service. The environment is printed right when Caddy starts up, because the run command has the --environ flag.

1 Like

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